pub struct JournalRecord {Show 14 fields
pub schema: String,
pub id: String,
pub status: JournalStatus,
pub timestamp: String,
pub actor: String,
pub project: String,
pub file: String,
pub item_ref: Option<String>,
pub transaction: Option<String>,
pub operation: Option<JournalOperation>,
pub pre_hash: String,
pub post_hash: String,
pub patches: Vec<StoredPatch>,
pub diff: String,
}Fields§
§schema: String§id: String§status: JournalStatus§timestamp: String§actor: String§project: String§file: String§item_ref: Option<String>§transaction: Option<String>§operation: Option<JournalOperation>What the write did; absent from records agd wrote before it journaled operations.
pre_hash: String§post_hash: String§patches: Vec<StoredPatch>§diff: StringImplementations§
Source§impl JournalRecord
impl JournalRecord
Sourcepub fn agent(&self) -> Option<&str>
pub fn agent(&self) -> Option<&str>
The agent that made the change, codex for mcp:codex; None for a
person’s change from the CLI or TUI.
Sourcepub fn actor_name(&self) -> &str
pub fn actor_name(&self) -> &str
Who made the change as agd names them: the agent (codex), or
you for the CLI and TUI.
Sourcepub fn operation_label(&self) -> &'static str
pub fn operation_label(&self) -> &'static str
What the change did in words (JournalOperation::label); change
for a record without an operation.
Trait Implementations§
Source§impl Clone for JournalRecord
impl Clone for JournalRecord
Source§impl Debug for JournalRecord
impl Debug for JournalRecord
Source§impl<'de> Deserialize<'de> for JournalRecord
impl<'de> Deserialize<'de> for JournalRecord
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 JournalRecord
impl RefUnwindSafe for JournalRecord
impl Send for JournalRecord
impl Sync for JournalRecord
impl Unpin for JournalRecord
impl UnsafeUnpin for JournalRecord
impl UnwindSafe for JournalRecord
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