pub struct Resource { /* private fields */ }Implementations§
Source§impl Resource
impl Resource
pub fn new() -> Resource
pub fn index<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn create<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn store<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn show<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn edit<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn update<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn destroy<H>(self, handler: H) -> Resourcewhere
H: Handler,
pub fn only(self, actions: impl IntoIterator<Item = ResourceAction>) -> Resource
pub fn except( self, actions: impl IntoIterator<Item = ResourceAction>, ) -> Resource
pub fn parameter(self, parameter: impl Into<String>) -> Resource
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Resource
impl !UnwindSafe for Resource
impl Freeze for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
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