pub struct CommitContext {
pub agent_id: Option<Uuid>,
pub seed_id: Option<Uuid>,
pub tag: Option<&'static str>,
}Expand description
Commit metadata supplied by the caller to identify who is committing.
Enables per-agent author tracking while keeping the existing
commit_file(path, msg) API fully backward-compatible.
Fields§
§agent_id: Option<Uuid>Agent ID — if present the author becomes agent-{short_id},
otherwise "oxios".
seed_id: Option<Uuid>Seed ID — if present, included in the commit message prefix.
tag: Option<&'static str>Extra tag such as "memory", "audit", "cron".
Implementations§
Trait Implementations§
Source§impl Clone for CommitContext
impl Clone for CommitContext
Source§fn clone(&self) -> CommitContext
fn clone(&self) -> CommitContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitContext
impl Debug for CommitContext
Source§impl Default for CommitContext
impl Default for CommitContext
Source§fn default() -> CommitContext
fn default() -> CommitContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitContext
impl RefUnwindSafe for CommitContext
impl Send for CommitContext
impl Sync for CommitContext
impl Unpin for CommitContext
impl UnsafeUnpin for CommitContext
impl UnwindSafe for CommitContext
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