pub struct BufferMeta {
pub id: Uuid,
pub cmd: String,
pub cwd: String,
pub exit_code: Option<i32>,
pub duration_ms: Option<i64>,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub output_size: u64,
pub session_id: String,
}Expand description
Metadata for a buffer entry.
Fields§
§id: UuidUnique identifier for this entry.
cmd: StringCommand that was executed.
cwd: StringWorking directory when command was executed.
exit_code: Option<i32>Exit code (None if command is still running or was killed).
duration_ms: Option<i64>Duration in milliseconds.
started_at: DateTime<Utc>When the command started.
completed_at: Option<DateTime<Utc>>When the command completed (None if still running).
output_size: u64Size of output in bytes.
session_id: StringSession ID for grouping.
Implementations§
Trait Implementations§
Source§impl Clone for BufferMeta
impl Clone for BufferMeta
Source§fn clone(&self) -> BufferMeta
fn clone(&self) -> BufferMeta
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 BufferMeta
impl Debug for BufferMeta
Source§impl<'de> Deserialize<'de> for BufferMeta
impl<'de> Deserialize<'de> for BufferMeta
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 BufferMeta
impl RefUnwindSafe for BufferMeta
impl Send for BufferMeta
impl Sync for BufferMeta
impl Unpin for BufferMeta
impl UnwindSafe for BufferMeta
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