Skip to main content

Arguments

Struct Arguments 

Source
pub struct Arguments {
Show 29 fields pub config: Option<PathBuf>, pub output: Option<String>, pub page_size: Option<String>, pub cursor: Option<String>, pub operation_id: Option<String>, pub actor: Option<String>, pub reason: Option<String>, pub expected_version: Option<u64>, pub timeout: Option<String>, pub dry_run: bool, pub yes: bool, pub no_color: bool, pub job: Option<String>, pub instance: Option<u64>, pub execution: Option<u64>, pub step: Option<u64>, pub unresolved_age: Option<String>, pub record: Option<RecordArg>, pub directive: Option<DirectiveArg>, pub failure_category: Option<String>, pub failure_id: Option<u64>, pub evidence_digest: Option<String>, pub older_than: Option<String>, pub batch: Option<String>, pub status: Vec<String>, pub plan_digest: Option<String>, pub parameters: Vec<(String, String)>, pub parameters_file: Option<PathBuf>, pub out: Option<PathBuf>,
}
Expand description

One parsed invocation of the closed grammar.

Every field is the raw argument text or a syntactically validated value. Semantic validation belongs to configuration resolution and to the command itself.

Fields§

§config: Option<PathBuf>

Path of an explicit configuration file.

§output: Option<String>

Requested output form.

§page_size: Option<String>

Requested page bound.

§cursor: Option<String>

Opaque continuation token from a prior page.

§operation_id: Option<String>

Idempotency key for a mutating command.

§actor: Option<String>

Deployment-supplied opaque actor reference.

§reason: Option<String>

Bounded closed-set reason code.

§expected_version: Option<u64>

Observed optimistic version for a mutation.

§timeout: Option<String>

Client deadline.

§dry_run: bool

Validate and report without mutating.

§yes: bool

Confirm a destructive command non-interactively.

§no_color: bool

Disable styling.

§job: Option<String>

Target job name.

§instance: Option<u64>

Target logical instance.

§execution: Option<u64>

Target execution attempt.

§step: Option<u64>

Target step execution.

§unresolved_age: Option<String>

Age bound selecting stale candidates for execution list.

§record: Option<RecordArg>

Record family selected by execution history.

§directive: Option<DirectiveArg>

Recovery disposition.

§failure_category: Option<String>

Framework failure category of a mark-failed directive.

§failure_id: Option<u64>

Opaque failure identifier of a mark-failed directive.

§evidence_digest: Option<String>

Hexadecimal evidence digest binding a recovery decision.

§older_than: Option<String>

Minimum age of a purge candidate.

§batch: Option<String>

Bounded purge batch size.

§status: Vec<String>

Terminal statuses a purge may target.

§plan_digest: Option<String>

Plan digest a retention apply must match.

§parameters: Vec<(String, String)>

Identifying job parameters supplied as name=value.

§parameters_file: Option<PathBuf>

Path of a typed job-parameter file.

§out: Option<PathBuf>

Target path of a diagnostics bundle.

Trait Implementations§

Source§

impl Clone for Arguments

Source§

fn clone(&self) -> Arguments

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Arguments

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Arguments

Source§

fn default() -> Arguments

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more