pub enum NamespaceAccess {
Unrestricted {},
Acl {
principal_scope: PrincipalScope,
root_grants: AccessGrants,
},
}Expand description
A namespace’s access mode, fixed at creation.
Variants§
Unrestricted
Every caller holding the deployment credential may do everything.
Acl
Access rows govern every operation.
Fields
§
principal_scope: PrincipalScopeIdentity domain the namespace’s principal ids belong to.
§
root_grants: AccessGrantsThe root inode’s grants at genesis, normally admin for each
initial administrator.
Implementations§
Source§impl NamespaceAccess
impl NamespaceAccess
Sourcepub fn unrestricted() -> Self
pub fn unrestricted() -> Self
The unrestricted access mode.
Sourcepub const fn is_unrestricted(&self) -> bool
pub const fn is_unrestricted(&self) -> bool
Whether every caller holding the deployment credential may do everything.
Trait Implementations§
Source§impl Clone for NamespaceAccess
impl Clone for NamespaceAccess
Source§impl Debug for NamespaceAccess
impl Debug for NamespaceAccess
Source§impl<'de> Deserialize<'de> for NamespaceAccess
impl<'de> Deserialize<'de> for NamespaceAccess
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 NamespaceAccess
Source§impl From<&NamespaceAccess> for NamespaceAccessMode
impl From<&NamespaceAccess> for NamespaceAccessMode
Source§fn from(access: &NamespaceAccess) -> Self
fn from(access: &NamespaceAccess) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NamespaceAccess
impl PartialEq for NamespaceAccess
Source§impl Serialize for NamespaceAccess
impl Serialize for NamespaceAccess
impl StructuralPartialEq for NamespaceAccess
Auto Trait Implementations§
impl Freeze for NamespaceAccess
impl RefUnwindSafe for NamespaceAccess
impl Send for NamespaceAccess
impl Sync for NamespaceAccess
impl Unpin for NamespaceAccess
impl UnsafeUnpin for NamespaceAccess
impl UnwindSafe for NamespaceAccess
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