Struct wasm_deploy::cli::Cli
source · pub struct Cli<C, S = EmptySubcommand>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,{
pub command: Commands<C, S>,
pub cargo_args: Vec<String>,
}Fields§
§command: Commands<C, S>§cargo_args: Vec<String>Add additional args to cargo build
Trait Implementations§
source§impl<C, S> Args for Cli<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> Args for Cli<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§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
source§impl<C, S> Clone for Cli<C, S>where
C: Deploy + Clone + Clone,
S: Subcommand + Clone + Debug + Clone,
impl<C, S> Clone for Cli<C, S>where C: Deploy + Clone + Clone, S: Subcommand + Clone + Debug + Clone,
source§impl<C, S> CommandFactory for Cli<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> CommandFactory for Cli<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
source§impl<C, S> Debug for Cli<C, S>where
C: Deploy + Clone + Debug,
S: Subcommand + Clone + Debug + Debug,
impl<C, S> Debug for Cli<C, S>where C: Deploy + Clone + Debug, S: Subcommand + Clone + Debug + Debug,
source§impl<C, S> FromArgMatches for Cli<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> FromArgMatches for Cli<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
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<C, S> Parser for Cli<C, S>where
C: Deploy + Clone,
S: Subcommand + Clone + Debug,
impl<C, S> Parser for Cli<C, S>where C: Deploy + Clone, S: Subcommand + Clone + Debug,
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl<C, S> RefUnwindSafe for Cli<C, S>where C: RefUnwindSafe, S: RefUnwindSafe,
impl<C, S> Send for Cli<C, S>where S: Send,
impl<C, S> Sync for Cli<C, S>where S: Sync,
impl<C, S> Unpin for Cli<C, S>where C: Unpin, S: Unpin,
impl<C, S> UnwindSafe for Cli<C, S>where C: UnwindSafe, S: UnwindSafe,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request