pub struct ResolvedInvocation { /* private fields */ }Expand description
One legal invocation, projected onto the shape that matched it.
Implementations§
Source§impl ResolvedInvocation
impl ResolvedInvocation
pub fn command_path(&self) -> &[String]
pub fn action_id(&self) -> &str
pub fn combination_id(&self) -> &str
pub fn output_plan(&self) -> &OutputPlan
Sourcepub fn was_explicit(&self, argument_id: &str) -> bool
pub fn was_explicit(&self, argument_id: &str) -> bool
Whether the caller wrote this argument, as opposed to inheriting it from the shape’s fixed value or the argument’s default.
pub fn optional(&self, argument_id: &str) -> Option<&CliValue>
pub fn required(&self, argument_id: &str) -> &CliValue
pub fn repeated(&self, argument_id: &str) -> &[CliValue]
Trait Implementations§
Source§impl Clone for ResolvedInvocation
impl Clone for ResolvedInvocation
Source§fn clone(&self) -> ResolvedInvocation
fn clone(&self) -> ResolvedInvocation
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 ResolvedInvocation
impl Debug for ResolvedInvocation
Source§impl PartialEq for ResolvedInvocation
impl PartialEq for ResolvedInvocation
impl StructuralPartialEq for ResolvedInvocation
Auto Trait Implementations§
impl Freeze for ResolvedInvocation
impl RefUnwindSafe for ResolvedInvocation
impl Send for ResolvedInvocation
impl Sync for ResolvedInvocation
impl Unpin for ResolvedInvocation
impl UnsafeUnpin for ResolvedInvocation
impl UnwindSafe for ResolvedInvocation
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