pub struct ActionLogEntry {
pub action: String,
pub result: ActionLogResult,
pub start_time: DateTime<Utc>,
pub duration_ms: u64,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Log entry for action execution with timing information
Fields§
§action: StringThe action that was executed
result: ActionLogResultThe result of the action execution
start_time: DateTime<Utc>When the action started executing
duration_ms: u64How long the action took to execute
metadata: Option<HashMap<String, String>>Optional metadata for debugging
Implementations§
Source§impl ActionLogEntry
impl ActionLogEntry
Sourcepub fn new(
action: &Action,
result: &ActionResult,
start_time: DateTime<Utc>,
duration: Duration,
) -> Self
pub fn new( action: &Action, result: &ActionResult, start_time: DateTime<Utc>, duration: Duration, ) -> Self
Create a new log entry from action execution
Trait Implementations§
Source§impl Clone for ActionLogEntry
impl Clone for ActionLogEntry
Source§fn clone(&self) -> ActionLogEntry
fn clone(&self) -> ActionLogEntry
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 ActionLogEntry
impl Debug for ActionLogEntry
Source§impl<'de> Deserialize<'de> for ActionLogEntry
impl<'de> Deserialize<'de> for ActionLogEntry
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 ActionLogEntry
impl RefUnwindSafe for ActionLogEntry
impl Send for ActionLogEntry
impl Sync for ActionLogEntry
impl Unpin for ActionLogEntry
impl UnwindSafe for ActionLogEntry
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