Struct golem_examples::model::ExampleName
source · pub struct ExampleName(/* private fields */);
Implementations§
source§impl ExampleName
impl ExampleName
pub fn from_string(s: impl AsRef<str>) -> ExampleName
pub fn as_string(&self) -> &str
Trait Implementations§
source§impl Clone for ExampleName
impl Clone for ExampleName
source§fn clone(&self) -> ExampleName
fn clone(&self) -> ExampleName
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 ExampleName
impl Debug for ExampleName
source§impl<'de> Deserialize<'de> for ExampleName
impl<'de> Deserialize<'de> for ExampleName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ExampleName
impl Display for ExampleName
source§impl FromStr for ExampleName
impl FromStr for ExampleName
source§impl Hash for ExampleName
impl Hash for ExampleName
source§impl Ord for ExampleName
impl Ord for ExampleName
source§fn cmp(&self, other: &ExampleName) -> Ordering
fn cmp(&self, other: &ExampleName) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ExampleName
impl PartialEq for ExampleName
source§fn eq(&self, other: &ExampleName) -> bool
fn eq(&self, other: &ExampleName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExampleName
impl PartialOrd for ExampleName
source§fn partial_cmp(&self, other: &ExampleName) -> Option<Ordering>
fn partial_cmp(&self, other: &ExampleName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ExampleName
impl Serialize for ExampleName
impl Eq for ExampleName
impl StructuralEq for ExampleName
impl StructuralPartialEq for ExampleName
Auto Trait Implementations§
impl RefUnwindSafe for ExampleName
impl Send for ExampleName
impl Sync for ExampleName
impl Unpin for ExampleName
impl UnwindSafe for ExampleName
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