pub struct ActionBuilder { /* private fields */ }Expand description
Helper for creating action records easily.
Implementations§
Source§impl ActionBuilder
impl ActionBuilder
pub fn new(sister_type: SisterType, action_type: impl Into<String>) -> Self
pub fn success(self) -> ActionRecord
pub fn success_with(self, result: impl Serialize) -> ActionRecord
pub fn failure( self, code: impl Into<String>, message: impl Into<String>, ) -> ActionRecord
Auto Trait Implementations§
impl Freeze for ActionBuilder
impl RefUnwindSafe for ActionBuilder
impl Send for ActionBuilder
impl Sync for ActionBuilder
impl Unpin for ActionBuilder
impl UnsafeUnpin for ActionBuilder
impl UnwindSafe for ActionBuilder
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