pub struct PermissionMarkers {
pub allow_read: u32,
pub allow_write: u32,
pub anything: u32,
pub allow_reference: u32,
}Expand description
The four points of the data permission rules are made of: the markers
AllowRead, AllowWrite and AllowReference of rules and Anything, which
matches every subject or every link.
Fields§
§allow_read: u32§allow_write: u32§anything: u32§allow_reference: u32Implementations§
Source§impl PermissionMarkers
impl PermissionMarkers
Sourcepub const ALLOW_READ_NAME: &'static str = "AllowRead"
pub const ALLOW_READ_NAME: &'static str = "AllowRead"
The name of the marker of read rules.
Sourcepub const ALLOW_WRITE_NAME: &'static str = "AllowWrite"
pub const ALLOW_WRITE_NAME: &'static str = "AllowWrite"
The name of the marker of write rules.
Sourcepub const ANYTHING_NAME: &'static str = "Anything"
pub const ANYTHING_NAME: &'static str = "Anything"
The name of the marker that matches every subject or link.
Sourcepub const ALLOW_REFERENCE_NAME: &'static str = "AllowReference"
pub const ALLOW_REFERENCE_NAME: &'static str = "AllowReference"
The name of the marker of reference rules.
Sourcepub fn ensure<L: NamedTypeLinks + ?Sized>(links: &mut L) -> Result<Self>
pub fn ensure<L: NamedTypeLinks + ?Sized>(links: &mut L) -> Result<Self>
The points named AllowRead, AllowWrite, Anything and
AllowReference, each created as a point (x: x x) and named when
missing. AllowReference comes last, so the others keep their addresses
in a store made before it was added.
Sourcepub fn of(&self, access: PermissionAccess) -> u32
pub fn of(&self, access: PermissionAccess) -> u32
The marker of the rules of access.
Trait Implementations§
Source§impl Clone for PermissionMarkers
impl Clone for PermissionMarkers
impl Copy for PermissionMarkers
Source§impl Debug for PermissionMarkers
impl Debug for PermissionMarkers
impl Eq for PermissionMarkers
Source§impl Hash for PermissionMarkers
impl Hash for PermissionMarkers
Source§impl PartialEq for PermissionMarkers
impl PartialEq for PermissionMarkers
impl StructuralPartialEq for PermissionMarkers
Auto Trait Implementations§
impl Freeze for PermissionMarkers
impl RefUnwindSafe for PermissionMarkers
impl Send for PermissionMarkers
impl Sync for PermissionMarkers
impl Unpin for PermissionMarkers
impl UnsafeUnpin for PermissionMarkers
impl UnwindSafe for PermissionMarkers
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