pub struct Cap<'a> {
pub component: &'a str,
pub action: &'a str,
pub scope: Option<&'a str>,
}Expand description
A parsed capability string.
Fields§
§component: &'a strThe component, e.g. camera.
action: &'a strThe action, e.g. snapshot.
scope: Option<&'a str>Optional scope, e.g. front-door.
Implementations§
Trait Implementations§
impl<'a> Copy for Cap<'a>
impl<'a> Eq for Cap<'a>
impl<'a> StructuralPartialEq for Cap<'a>
Auto Trait Implementations§
impl<'a> Freeze for Cap<'a>
impl<'a> RefUnwindSafe for Cap<'a>
impl<'a> Send for Cap<'a>
impl<'a> Sync for Cap<'a>
impl<'a> Unpin for Cap<'a>
impl<'a> UnsafeUnpin for Cap<'a>
impl<'a> UnwindSafe for Cap<'a>
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