pub struct CommandHistory {
pub command: String,
pub approved: bool,
pub edited_command: Option<String>,
pub timestamp: Option<String>,
pub rule_matched: Option<String>,
}Expand description
Record of a command that was evaluated by the approval system.
Fields§
§command: String§approved: bool§edited_command: Option<String>§timestamp: Option<String>§rule_matched: Option<String>Trait Implementations§
Source§impl Clone for CommandHistory
impl Clone for CommandHistory
Source§fn clone(&self) -> CommandHistory
fn clone(&self) -> CommandHistory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandHistory
impl Debug for CommandHistory
Source§impl<'de> Deserialize<'de> for CommandHistory
impl<'de> Deserialize<'de> for CommandHistory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandHistory
impl RefUnwindSafe for CommandHistory
impl Send for CommandHistory
impl Sync for CommandHistory
impl Unpin for CommandHistory
impl UnsafeUnpin for CommandHistory
impl UnwindSafe for CommandHistory
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