pub struct OriginContract {
pub contract_id: ContractInstanceId,
pub client_id: ClientId,
pub last_accessed: Instant,
}Expand description
Represents an origin contract entry with metadata for token expiration.
Fields§
§contract_id: ContractInstanceIdThe contract instance ID
client_id: ClientIdThe client ID associated with this token
last_accessed: InstantTimestamp of when the token was last accessed (for expiration tracking)
Implementations§
Source§impl OriginContract
impl OriginContract
Sourcepub fn new(contract_id: ContractInstanceId, client_id: ClientId) -> Self
pub fn new(contract_id: ContractInstanceId, client_id: ClientId) -> Self
Create a new origin contract entry
Trait Implementations§
Source§impl Clone for OriginContract
impl Clone for OriginContract
Source§fn clone(&self) -> OriginContract
fn clone(&self) -> OriginContract
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§
impl Freeze for OriginContract
impl RefUnwindSafe for OriginContract
impl Send for OriginContract
impl Sync for OriginContract
impl Unpin for OriginContract
impl UnsafeUnpin for OriginContract
impl UnwindSafe for OriginContract
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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