Struct golem_examples::model::ComponentName
source · pub struct ComponentName(/* private fields */);
Implementations§
source§impl ComponentName
impl ComponentName
pub fn new(name: impl AsRef<str>) -> ComponentName
pub fn as_string(&self) -> &str
pub fn parts(&self) -> Vec<String>
pub fn to_kebab_case(&self) -> String
pub fn to_snake_case(&self) -> String
pub fn to_pascal_case(&self) -> String
pub fn to_camel_case(&self) -> String
Trait Implementations§
source§impl Clone for ComponentName
impl Clone for ComponentName
source§fn clone(&self) -> ComponentName
fn clone(&self) -> ComponentName
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 ComponentName
impl Debug for ComponentName
source§impl<'de> Deserialize<'de> for ComponentName
impl<'de> Deserialize<'de> for ComponentName
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 ComponentName
impl Display for ComponentName
source§impl FromStr for ComponentName
impl FromStr for ComponentName
source§impl Hash for ComponentName
impl Hash for ComponentName
source§impl Ord for ComponentName
impl Ord for ComponentName
source§fn cmp(&self, other: &ComponentName) -> Ordering
fn cmp(&self, other: &ComponentName) -> 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 ComponentName
impl PartialEq for ComponentName
source§impl PartialOrd for ComponentName
impl PartialOrd for ComponentName
source§impl Serialize for ComponentName
impl Serialize for ComponentName
impl Eq for ComponentName
impl StructuralPartialEq for ComponentName
Auto Trait Implementations§
impl Freeze for ComponentName
impl RefUnwindSafe for ComponentName
impl Send for ComponentName
impl Sync for ComponentName
impl Unpin for ComponentName
impl UnwindSafe for ComponentName
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)