pub struct CommandRecordStart {
pub command: CommandIdentity,
pub source: CommandSource,
pub context: CommandExecutionContext,
pub started_at: SystemTime,
pub retention: OutputRetention,
pub refresh: RefreshPlan,
pub safety: SafetyClass,
pub execution_mode: ExecutionMode,
}Expand description
Fields required when a command starts.
Fields§
§command: CommandIdentityCommand identity captured from a typed spec.
source: CommandSourceView and action that triggered the command.
context: CommandExecutionContextExecution context captured before running the command.
started_at: SystemTimeStart time.
retention: OutputRetentionOutput retention policy for this record.
refresh: RefreshPlanRefresh behavior requested by the command spec.
safety: SafetyClassSafety classification requested by the command spec.
execution_mode: ExecutionModeExecution mode requested by the command spec.
Implementations§
Source§impl CommandRecordStart
impl CommandRecordStart
Sourcepub fn from_spec(spec: &JjCommandSpec, source: CommandSource) -> Self
pub fn from_spec(spec: &JjCommandSpec, source: CommandSource) -> Self
Creates start data from a typed jj command spec and source.
Sourcepub const fn with_started_at(self, started_at: SystemTime) -> Self
pub const fn with_started_at(self, started_at: SystemTime) -> Self
Sets the start time for deterministic tests or caller-owned timing.
Sourcepub fn with_retention(self, retention: OutputRetention) -> Self
pub fn with_retention(self, retention: OutputRetention) -> Self
Sets the output retention policy.
Trait Implementations§
Source§impl Clone for CommandRecordStart
impl Clone for CommandRecordStart
Source§impl Debug for CommandRecordStart
impl Debug for CommandRecordStart
impl Eq for CommandRecordStart
Source§impl PartialEq for CommandRecordStart
impl PartialEq for CommandRecordStart
impl StructuralPartialEq for CommandRecordStart
Auto Trait Implementations§
impl Forget for CommandRecordStart
impl Freeze for CommandRecordStart
impl RefUnwindSafe for CommandRecordStart
impl Send for CommandRecordStart
impl Sync for CommandRecordStart
impl Unpin for CommandRecordStart
impl UnsafeUnpin for CommandRecordStart
impl UnwindSafe for CommandRecordStart
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