pub struct AccessRequestView {Show 21 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 produced_lease_not_after: Option<DateTime<Utc>>,
pub extension_of_lease_id: Option<AccessLeaseId>,
pub requester_name: Option<String>,
pub requester_email: Option<String>,
pub awaiting_activation: bool,
pub human_decision: Option<AccessRequestDecisionView>,
}Expand description
An access request, as returned by the server.
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, if any.
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 activated.
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 or expired.
decisions: Vec<AccessRequestDecisionView>The request’s decision log, oldest first.
produced_lease_id: Option<AccessLeaseId>The lease this request produced on activation. None until activation.
produced_lease_status: Option<AccessLeaseStatus>The status of the produced lease at the time this view was fetched. None until activation.
produced_lease_not_after: Option<DateTime<Utc>>The produced lease’s current end (UTC); None until activation. Unlike
lease_not_after, this moves when the lease is extended.
extension_of_lease_id: Option<AccessLeaseId>The parent lease, if this is an extension request.
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.
awaiting_activation: boolTrue while approved but not yet activated into a lease.
human_decision: Option<AccessRequestDecisionView>The approver’s or holder’s decision, if any. None for automatic decisions.
Trait Implementations§
Source§impl Clone for AccessRequestView
impl Clone for AccessRequestView
Source§fn clone(&self) -> AccessRequestView
fn clone(&self) -> AccessRequestView
1.0.0 (const: unstable) · 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 FromWasm for AccessRequestView
Available on crate feature wasm only.
impl FromWasm for AccessRequestView
wasm only.Source§impl PartialEq for AccessRequestView
impl PartialEq for AccessRequestView
Source§impl Serialize for AccessRequestView
impl Serialize for AccessRequestView
impl StructuralPartialEq for AccessRequestView
Source§impl ToWasm for AccessRequestView
Available on crate feature wasm only.
impl ToWasm for AccessRequestView
wasm only.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 * An access request, as returned by the server.\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, if any.\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 activated.\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 or expired.\n */\n resolvedAt: DateTime<Utc> | undefined;\n /**\n * The request\'s decision log, oldest first.\n */\n decisions: AccessRequestDecisionView[];\n /**\n * The lease this request produced on activation. 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 produced lease\'s current end (UTC); None until activation. Unlike\n * [`lease_not_after`](Self::lease_not_after), this moves when the lease is extended.\n */\n producedLeaseNotAfter: DateTime<Utc> | undefined;\n /**\n * The parent lease, if this is an extension request.\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 /**\n * True while approved but not yet activated into a lease.\n */\n awaitingActivation: boolean;\n /**\n * The approver\'s or holder\'s decision, if any. None for automatic decisions.\n */\n humanDecision: AccessRequestDecisionView | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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> ⓘ
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