Enum golem_cli::model::TemplateIdOrName
source · pub enum TemplateIdOrName {
Id(RawTemplateId),
Name(TemplateName),
}
Variants§
Id(RawTemplateId)
Name(TemplateName)
Trait Implementations§
source§impl Args for TemplateIdOrName
impl Args for TemplateIdOrName
source§fn augment_args(cmd: Command) -> Command
fn augment_args(cmd: Command) -> Command
source§fn augment_args_for_update(cmd: Command) -> Command
fn augment_args_for_update(cmd: Command) -> Command
source§impl Clone for TemplateIdOrName
impl Clone for TemplateIdOrName
source§fn clone(&self) -> TemplateIdOrName
fn clone(&self) -> TemplateIdOrName
Returns a copy of the value. Read more
1.0.0 · 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 TemplateIdOrName
impl Debug for TemplateIdOrName
source§impl FromArgMatches for TemplateIdOrName
impl FromArgMatches for TemplateIdOrName
source§fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error>
source§fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error>
fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error>
Assign values from
ArgMatches
to self
.§fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error>
fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error>
§fn update_from_arg_matches_mut(
&mut self,
matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl PartialEq for TemplateIdOrName
impl PartialEq for TemplateIdOrName
source§fn eq(&self, other: &TemplateIdOrName) -> bool
fn eq(&self, other: &TemplateIdOrName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TemplateIdOrName
impl StructuralPartialEq for TemplateIdOrName
Auto Trait Implementations§
impl RefUnwindSafe for TemplateIdOrName
impl Send for TemplateIdOrName
impl Sync for TemplateIdOrName
impl Unpin for TemplateIdOrName
impl UnwindSafe for TemplateIdOrName
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.