pub struct StackBaseArgs {
pub repo: String,
pub branch: String,
pub root: String,
pub parents: Vec<String>,
pub label: Vec<String>,
pub json: bool,
}Expand description
Arguments for onevcs stack-base.
Fields§
§repo: StringThe repository: an identity key, a registered alias, an origin URL, or a path.
branch: StringThe stack base branch to assemble, under its full name.
root: StringThe root the branch is cut from and kept level with, e.g. main.
parents: Vec<String>A parent branch to merge; repeatable, at least twice, merged in the order given.
label: Vec<String>A label to stamp on the session the assembly is made in, as KEY=VALUE;
repeatable, one value per key, exactly as session open --label takes one.
json: boolAnswer with the stack base as one JSON object.
Trait Implementations§
Source§impl Args for StackBaseArgs
impl Args for StackBaseArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for StackBaseArgs
impl Clone for StackBaseArgs
Source§impl CommandFactory for StackBaseArgs
impl CommandFactory for StackBaseArgs
Source§impl Debug for StackBaseArgs
impl Debug for StackBaseArgs
impl Eq for StackBaseArgs
Source§impl FromArgMatches for StackBaseArgs
impl FromArgMatches for StackBaseArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for StackBaseArgs
impl Parser for StackBaseArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for StackBaseArgs
impl PartialEq for StackBaseArgs
impl StructuralPartialEq for StackBaseArgs
Auto Trait Implementations§
impl Freeze for StackBaseArgs
impl RefUnwindSafe for StackBaseArgs
impl Send for StackBaseArgs
impl Sync for StackBaseArgs
impl Unpin for StackBaseArgs
impl UnsafeUnpin for StackBaseArgs
impl UnwindSafe for StackBaseArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.