pub struct PendingInvocation {
pub id: Uuid,
pub session_id: String,
pub timestamp: DateTime<Utc>,
pub cwd: String,
pub cmd: String,
pub runner_id: String,
pub client_id: String,
}Expand description
A pending invocation marker stored as JSON.
This is a lightweight representation of an in-flight invocation, stored as a JSON file for crash recovery.
Fields§
§id: UuidUnique identifier (matches the parquet record).
session_id: StringSession identifier.
timestamp: DateTime<Utc>When the invocation started.
cwd: StringWorking directory.
cmd: StringFull command string.
runner_id: StringRunner identifier for liveness checking.
client_id: StringClient identifier.
Implementations§
Source§impl PendingInvocation
impl PendingInvocation
Sourcepub fn from_record(record: &InvocationRecord) -> Option<Self>
pub fn from_record(record: &InvocationRecord) -> Option<Self>
Create a pending invocation from an InvocationRecord.
Trait Implementations§
Source§impl Clone for PendingInvocation
impl Clone for PendingInvocation
Source§fn clone(&self) -> PendingInvocation
fn clone(&self) -> PendingInvocation
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 PendingInvocation
impl Debug for PendingInvocation
Source§impl<'de> Deserialize<'de> for PendingInvocation
impl<'de> Deserialize<'de> for PendingInvocation
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 PendingInvocation
impl RefUnwindSafe for PendingInvocation
impl Send for PendingInvocation
impl Sync for PendingInvocation
impl Unpin for PendingInvocation
impl UnwindSafe for PendingInvocation
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