pub struct ShareLinkRecord {
pub link_id: ShareLinkId,
pub opaque_id: [u8; 16],
pub scope: ShareScope,
pub wrapped_scope: WrappedScope,
pub expires_at: Option<String>,
pub created_at: String,
pub revocation: Option<RevocationRecord>,
}Expand description
The issuer-held record for one live share link — the authoritative state the serving endpoint consults: the opaque id it is addressed by, the scope it resolves to, the server-held wrapped material, expiry, and any revocation record.
Fields§
§link_id: ShareLinkIdRevocation handle.
opaque_id: [u8; 16]The random 128-bit opaque id (URL path component).
scope: ShareScopeWhat the link grants access to.
wrapped_scope: WrappedScopeThe opaque, server-held encapsulated scope material.
expires_at: Option<String>RFC 3339 expiry, if any.
created_at: StringRFC 3339 issuance timestamp.
revocation: Option<RevocationRecord>Present once the link has been revoked.
Implementations§
Sourcepub fn is_live_at(&self, now: Timestamp) -> bool
pub fn is_live_at(&self, now: Timestamp) -> bool
Whether the link is still live at now: not revoked and not past its expiry.
The serving endpoint is fail-closed; this is the authoritative predicate it caches.
Trait Implementations§
Source§fn clone(&self) -> ShareLinkRecord
fn clone(&self) -> ShareLinkRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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> 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>
Converts
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>
Converts
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