pub struct AccessRequestView {Show 18 fields
pub id: AccessRequestId,
pub cipher_id: CipherId,
pub collection_id: CollectionId,
pub organization_id: Option<OrganizationId>,
pub requester_id: UserId,
pub rule_id: Option<AccessRuleId>,
pub status: AccessRequestStatus,
pub lease_not_before: DateTime<Utc>,
pub lease_not_after: DateTime<Utc>,
pub reason: Option<String>,
pub submitted_at: DateTime<Utc>,
pub resolved_at: Option<DateTime<Utc>>,
pub decisions: Vec<AccessRequestDecisionView>,
pub produced_lease_id: Option<AccessLeaseId>,
pub produced_lease_status: Option<AccessLeaseStatus>,
pub extension_of_lease_id: Option<AccessLeaseId>,
pub requester_name: Option<String>,
pub requester_email: Option<String>,
}Expand description
A decrypted view of an access request, as its requester sees it.
An access request is a member’s ask to open a PAM-gated cipher. Once approved, the requester
activates it to mint an
AccessLease.
Fields§
§id: AccessRequestIdThe request’s unique identifier.
cipher_id: CipherIdThe cipher access was requested for.
collection_id: CollectionIdThe collection the cipher belongs to, through which the request is governed.
organization_id: Option<OrganizationId>The organization that owns the cipher. None when the server omits it.
requester_id: UserIdThe member who opened the request.
rule_id: Option<AccessRuleId>The access rule pinned to the request at submit time. None for requests created before rule pinning existed.
status: AccessRequestStatusThe request’s lifecycle state.
lease_not_before: DateTime<Utc>The start of the activation window resolved at submit (UTC) - the earliest the request may be promoted to a lease.
lease_not_after: DateTime<Utc>The end of the activation window resolved at submit (UTC).
reason: Option<String>The optional justification the requester supplied when opening the request.
submitted_at: DateTime<Utc>When the request was opened (UTC).
resolved_at: Option<DateTime<Utc>>When the request was approved, denied, or cancelled (UTC); None while pending.
decisions: Vec<AccessRequestDecisionView>The request’s decision log, oldest first. Empty only while pending.
produced_lease_id: Option<AccessLeaseId>The lease produced once this (approved) request was activated. None until activation.
produced_lease_status: Option<AccessLeaseStatus>The status of the produced lease at the time this view was fetched. None until activation.
extension_of_lease_id: Option<AccessLeaseId>The parent lease this request extends, if it is an extension request. None otherwise.
requester_name: Option<String>The requester’s display name, denormalized by the server. None only when the user could not be resolved.
requester_email: Option<String>The requester’s email, denormalized by the server. None only when the user could not be resolved.
Trait Implementations§
Source§impl Clone for AccessRequestView
impl Clone for AccessRequestView
Source§fn clone(&self) -> AccessRequestView
fn clone(&self) -> AccessRequestView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessRequestView
impl Debug for AccessRequestView
Source§impl<'de> Deserialize<'de> for AccessRequestView
impl<'de> Deserialize<'de> for AccessRequestView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<AccessRequestView> for JsValuewhere
AccessRequestView: Serialize,
impl From<AccessRequestView> for JsValuewhere
AccessRequestView: Serialize,
Source§fn from(value: AccessRequestView) -> Self
fn from(value: AccessRequestView) -> Self
Source§impl FromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
impl FromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &AccessRequestViewwhere
AccessRequestView: Serialize,
impl IntoWasmAbi for &AccessRequestViewwhere
AccessRequestView: Serialize,
Source§impl IntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
impl IntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
Source§impl OptionFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
impl OptionIntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
Source§impl PartialEq for AccessRequestView
impl PartialEq for AccessRequestView
Source§impl RefFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<AccessRequestView>
type Anchor = SelfOwner<AccessRequestView>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for AccessRequestView
impl Serialize for AccessRequestView
Source§impl TryFrom<AccessRequestDetailsResponseModel> for AccessRequestView
impl TryFrom<AccessRequestDetailsResponseModel> for AccessRequestView
Source§impl Tsify for AccessRequestView
impl Tsify for AccessRequestView
const DECL: &'static str = "/**\n * A decrypted view of an access request, as its requester sees it.\n *\n * An access request is a member\\\'s ask to open a PAM-gated cipher. Once approved, the requester\n * [`activate`](crate::AccessRequestsClient::activate)s it to mint an\n * [`AccessLease`](crate::AccessLeaseView).\n */\nexport interface AccessRequestView {\n /**\n * The request\\\'s unique identifier.\n */\n id: AccessRequestId;\n /**\n * The cipher access was requested for.\n */\n cipherId: CipherId;\n /**\n * The collection the cipher belongs to, through which the request is governed.\n */\n collectionId: CollectionId;\n /**\n * The organization that owns the cipher. None when the server omits it.\n */\n organizationId: OrganizationId | undefined;\n /**\n * The member who opened the request.\n */\n requesterId: UserId;\n /**\n * The access rule pinned to the request at submit time. None for requests created before rule\n * pinning existed.\n */\n ruleId: AccessRuleId | undefined;\n /**\n * The request\\\'s lifecycle state.\n */\n status: AccessRequestStatus;\n /**\n * The start of the activation window resolved at submit (UTC) - the earliest the request may\n * be promoted to a lease.\n */\n leaseNotBefore: DateTime<Utc>;\n /**\n * The end of the activation window resolved at submit (UTC).\n */\n leaseNotAfter: DateTime<Utc>;\n /**\n * The optional justification the requester supplied when opening the request.\n */\n reason: string | undefined;\n /**\n * When the request was opened (UTC).\n */\n submittedAt: DateTime<Utc>;\n /**\n * When the request was approved, denied, or cancelled (UTC); None while pending.\n */\n resolvedAt: DateTime<Utc> | undefined;\n /**\n * The request\\\'s decision log, oldest first. Empty only while pending.\n */\n decisions: AccessRequestDecisionView[];\n /**\n * The lease produced once this (approved) request was activated. None until activation.\n */\n producedLeaseId: AccessLeaseId | undefined;\n /**\n * The status of the produced lease at the time this view was fetched. None until activation.\n */\n producedLeaseStatus: AccessLeaseStatus | undefined;\n /**\n * The parent lease this request extends, if it is an extension request. None otherwise.\n */\n extensionOfLeaseId: AccessLeaseId | undefined;\n /**\n * The requester\\\'s display name, denormalized by the server. None only when the user could\n * not be resolved.\n */\n requesterName: string | undefined;\n /**\n * The requester\\\'s email, denormalized by the server. None only when the user could not be\n * resolved.\n */\n requesterEmail: string | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for AccessRequestViewwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
impl VectorIntoWasmAbi for AccessRequestViewwhere
AccessRequestView: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for AccessRequestView
impl WasmDescribe for AccessRequestView
impl StructuralPartialEq for AccessRequestView
Auto Trait Implementations§
impl Freeze for AccessRequestView
impl RefUnwindSafe for AccessRequestView
impl Send for AccessRequestView
impl Sync for AccessRequestView
impl Unpin for AccessRequestView
impl UnsafeUnpin for AccessRequestView
impl UnwindSafe for AccessRequestView
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.