pub struct ContextInspectResult {
pub subject: String,
pub exposure_labels: Vec<String>,
pub exposure_sources: Vec<String>,
pub expiry: Option<i64>,
pub is_expired: bool,
pub exposure_block_count: usize,
}Expand description
Result of inspecting a context token.
Fields§
§subject: StringThe subject (session owner) in the context token.
exposure_labels: Vec<String>The exposure labels accumulated in the context token.
exposure_sources: Vec<String>The exposure sources that contributed exposure labels.
expiry: Option<i64>Unix timestamp when the token expires (if extractable).
is_expired: boolWhether the token is currently expired.
exposure_block_count: usizeNumber of exposure blocks appended to the token.
Trait Implementations§
Source§impl Clone for ContextInspectResult
impl Clone for ContextInspectResult
Source§fn clone(&self) -> ContextInspectResult
fn clone(&self) -> ContextInspectResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextInspectResult
impl RefUnwindSafe for ContextInspectResult
impl Send for ContextInspectResult
impl Sync for ContextInspectResult
impl Unpin for ContextInspectResult
impl UnsafeUnpin for ContextInspectResult
impl UnwindSafe for ContextInspectResult
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