pub enum Ability<'a, M> {
ViewAny,
View(&'a M),
Create,
Update(&'a M),
DeleteAny,
Delete(&'a M),
}Expand description
One thing a policy is asked to allow; record abilities are asked once per loaded row, and a record that cannot be viewed cannot be written by guessing its key.
Variants§
ViewAny
Open the list, export it, and offer the records as relationship options.
View(&'a M)
See one record.
Create
Open the create form and submit it.
Update(&'a M)
Edit one record.
DeleteAny
Delete at all.
Delete(&'a M)
Delete one record.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, M> Freeze for Ability<'a, M>
impl<'a, M> RefUnwindSafe for Ability<'a, M>where
&'a M: RefUnwindSafe,
impl<'a, M> Send for Ability<'a, M>
impl<'a, M> Sync for Ability<'a, M>
impl<'a, M> Unpin for Ability<'a, M>
impl<'a, M> UnsafeUnpin for Ability<'a, M>where
&'a M: UnsafeUnpin,
impl<'a, M> UnwindSafe for Ability<'a, M>where
&'a M: UnwindSafe,
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