pub struct ScopeRecord {
pub scope_ref: String,
pub scope_epoch: u64,
pub kind: ScopeKind,
pub parent: Option<ScopeParent>,
pub child_owners: Vec<Principal>,
pub carriers: Vec<ScopeCarrier>,
pub attributes: ScopeAttributes,
}Expand description
One scope as its owner registers it in scope.sync.
Fields§
§scope_ref: String§scope_epoch: u64Owner-supplied session number. The owner keeps it with its own record of the session, re-sends the same value for the same session after any restart, and uses a higher one when it reuses the ref for a new session.
kind: ScopeKind§parent: Option<ScopeParent>§child_owners: Vec<Principal>Principals, other than the owner, allowed to register child scopes under this one. Listing a principal here grants it nothing else.
carriers: Vec<ScopeCarrier>§attributes: ScopeAttributesTrait Implementations§
Source§impl Clone for ScopeRecord
impl Clone for ScopeRecord
Source§impl Debug for ScopeRecord
impl Debug for ScopeRecord
Source§impl<'de> Deserialize<'de> for ScopeRecord
impl<'de> Deserialize<'de> for ScopeRecord
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScopeRecord
Source§impl PartialEq for ScopeRecord
impl PartialEq for ScopeRecord
Source§impl Serialize for ScopeRecord
impl Serialize for ScopeRecord
impl StructuralPartialEq for ScopeRecord
Auto Trait Implementations§
impl Freeze for ScopeRecord
impl RefUnwindSafe for ScopeRecord
impl Send for ScopeRecord
impl Sync for ScopeRecord
impl Unpin for ScopeRecord
impl UnsafeUnpin for ScopeRecord
impl UnwindSafe for ScopeRecord
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