pub struct AuditDraft {
pub action: String,
pub skill_id: Option<String>,
pub skill_name: Option<String>,
pub tool: Option<String>,
pub success: bool,
pub detail: Option<String>,
}Expand description
Payload used when recording a new entry.
Fields§
§action: String§skill_id: Option<String>§skill_name: Option<String>§tool: Option<String>§success: bool§detail: Option<String>Implementations§
Source§impl AuditDraft
impl AuditDraft
pub fn new(action: impl Into<String>) -> Self
pub fn ok(self) -> Self
pub fn fail(self, error: impl Into<String>) -> Self
pub fn skill(self, id: impl Into<String>, name: impl Into<String>) -> Self
pub fn tool(self, tool: impl Into<String>) -> Self
pub fn detail(self, detail: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AuditDraft
impl Clone for AuditDraft
Source§impl Debug for AuditDraft
impl Debug for AuditDraft
Auto Trait Implementations§
impl Forget for AuditDraft
impl Freeze for AuditDraft
impl Move for AuditDraft
impl RefUnwindSafe for AuditDraft
impl Send for AuditDraftwhere
RawVecInner: Send,
impl Sync for AuditDraftwhere
RawVecInner: Sync,
impl Unpin for AuditDraft
impl UnsafeUnpin for AuditDraft
impl UnwindSafe for AuditDraftwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.