pub struct ScopePath(/* private fields */);Expand description
Hierarchical scope path used by resource-level access checks.
Implementations§
Source§impl ScopePath
impl ScopePath
Sourcepub fn from_string(value: String) -> Self
pub fn from_string(value: String) -> Self
Creates a scope path from a trusted string without validation.
Sourcepub fn is_ancestor_of(&self, other: &ScopePath) -> bool
pub fn is_ancestor_of(&self, other: &ScopePath) -> bool
Returns whether self is an ancestor scope of other.
Trait Implementations§
impl Eq for ScopePath
impl StructuralPartialEq for ScopePath
Auto Trait Implementations§
impl Freeze for ScopePath
impl RefUnwindSafe for ScopePath
impl Send for ScopePath
impl Sync for ScopePath
impl Unpin for ScopePath
impl UnsafeUnpin for ScopePath
impl UnwindSafe for ScopePath
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