Struct golem_examples::cli::NameOrLanguage
source · pub struct NameOrLanguage {
pub example: Option<ExampleName>,
pub language: Option<GuestLanguage>,
}
Fields§
§example: Option<ExampleName>
Name of the example to use
language: Option<GuestLanguage>
Language to use for it’s default example
Implementations§
source§impl NameOrLanguage
impl NameOrLanguage
sourcepub fn example_name(&self) -> ExampleName
pub fn example_name(&self) -> ExampleName
Gets the selected example’s name
Trait Implementations§
source§impl Args for NameOrLanguage
impl Args for NameOrLanguage
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Debug for NameOrLanguage
impl Debug for NameOrLanguage
source§impl FromArgMatches for NameOrLanguage
impl FromArgMatches for NameOrLanguage
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
.Auto Trait Implementations§
impl Freeze for NameOrLanguage
impl RefUnwindSafe for NameOrLanguage
impl Send for NameOrLanguage
impl Sync for NameOrLanguage
impl Unpin for NameOrLanguage
impl UnwindSafe for NameOrLanguage
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