pub struct Acted<M> {
pub before: M,
pub after: Option<M>,
}Expand description
One row a custom Action ran on, as Change::Action reports it.
Fields§
§before: MThe row as the handler loaded and authorized it, before the run.
after: Option<M>The row as the run left it, reloaded by its key under the resource’s tenant filter alone:
a query narrowing or the trash does not hide it, so an
action that archives or trashes the row still reports it. None when the run deleted
the row or moved it out of the request’s tenant.
Implementations§
Trait Implementations§
impl<M> Eq for Acted<M>where
M: Eq,
impl<M> StructuralPartialEq for Acted<M>where
M: PartialEq,
Auto Trait Implementations§
impl<M> Freeze for Acted<M>where
M: Freeze,
impl<M> RefUnwindSafe for Acted<M>where
M: RefUnwindSafe,
impl<M> Send for Acted<M>where
M: Send,
impl<M> Sync for Acted<M>where
M: Sync,
impl<M> Unpin for Acted<M>where
M: Unpin,
impl<M> UnsafeUnpin for Acted<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Acted<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.