#[non_exhaustive]pub struct ScopeStamp {
pub owner: Principal,
pub scope_ref: String,
pub scope_epoch: u64,
pub kind: ScopeKind,
pub workdir: Option<String>,
pub project_id: Option<String>,
pub parent: Option<ScopeParent>,
pub parent_state: Option<ParentState>,
pub attributes: ScopeAttributes,
pub owner_authorized: bool,
pub expires_at_ms: Option<u64>,
}Expand description
The fields the daemon stamps for a live scope.
Build with ScopeStamp::new and the setters so future fields are additive.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.owner: Principal§scope_ref: String§scope_epoch: u64§kind: ScopeKind§workdir: Option<String>Canonical session folder. Sent on binds only to providers declaring
SCOPE_WORKDIR_CAPABILITY; absent fields keep older binds unchanged.
project_id: Option<String>Entorhinal project id for attribution, never authority.
parent: Option<ScopeParent>§parent_state: Option<ParentState>§attributes: ScopeAttributesWhether the owner is listed in the daemon’s scope_authority_owners.
Providers decide on this flag and keep no copy of the list.
Always false for the configured federated owner, even if it is listed.
expires_at_ms: Option<u64>Absolute Unix wall-clock deadline in milliseconds, fixed for this epoch.
On route binds the daemon sends this deadline only to targets declaring
crate::call_mode::CALL_MODES_CAPABILITY, because older providers may
reject unfamiliar scope-stamp fields.
Implementations§
Source§impl ScopeStamp
impl ScopeStamp
Sourcepub fn new(
owner: Principal,
scope_ref: impl Into<String>,
scope_epoch: u64,
kind: ScopeKind,
) -> Self
pub fn new( owner: Principal, scope_ref: impl Into<String>, scope_epoch: u64, kind: ScopeKind, ) -> Self
A stamp with no parent, attributes or deadline, and no owner authority.