pub struct ScopeCarrier {
pub principal: Principal,
pub targets: Option<Vec<String>>,
}Expand description
Who, besides the owner, may open routes under a scope.
targets absent means the carrier may open to any module. Present, it
names the only module ids the carrier may open to, and must hold between 1
and MAX_CARRIER_TARGETS entries: an empty list is refused rather than
read as either “none” or “all”.
Fields§
§principal: Principal§targets: Option<Vec<String>>Trait Implementations§
Source§impl Clone for ScopeCarrier
impl Clone for ScopeCarrier
Source§impl Debug for ScopeCarrier
impl Debug for ScopeCarrier
Source§impl<'de> Deserialize<'de> for ScopeCarrier
impl<'de> Deserialize<'de> for ScopeCarrier
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 ScopeCarrier
Source§impl PartialEq for ScopeCarrier
impl PartialEq for ScopeCarrier
Source§impl Serialize for ScopeCarrier
impl Serialize for ScopeCarrier
impl StructuralPartialEq for ScopeCarrier
Auto Trait Implementations§
impl Freeze for ScopeCarrier
impl RefUnwindSafe for ScopeCarrier
impl Send for ScopeCarrier
impl Sync for ScopeCarrier
impl Unpin for ScopeCarrier
impl UnsafeUnpin for ScopeCarrier
impl UnwindSafe for ScopeCarrier
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