pub struct Event<'a> {
pub operation: Operation,
pub resource: &'a str,
pub id: Option<&'a str>,
}Expand description
What is about to run, or has just run.
Borrowed rather than owned: a hook is called on the request path, and copying a resource name per hook per request is a cost with no purpose.
Fields§
§operation: OperationThe operation.
resource: &'a strThe resource’s JSON:API type, e.g. "todo".
id: Option<&'a str>The id the request addressed, for the operations that name one.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'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