pub struct ComponentTypeId(/* private fields */);Expand description
The identity of a component type - one authored component definition.
Implementations§
Source§impl ComponentTypeId
impl ComponentTypeId
Sourcepub const KIND: IdentifierKind = IdentifierKind::ComponentType
pub const KIND: IdentifierKind = IdentifierKind::ComponentType
What this identifier names, used in rejection messages.
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ModelError>
pub fn new(value: impl Into<String>) -> Result<Self, ModelError>
Validate and construct the identifier.
§Errors
Returns ModelError::NotNormalized when value is not a
token as defined by is_valid_token.
Trait Implementations§
Source§impl AsRef<str> for ComponentTypeId
impl AsRef<str> for ComponentTypeId
Source§impl Borrow<str> for ComponentTypeId
impl Borrow<str> for ComponentTypeId
Source§impl Clone for ComponentTypeId
impl Clone for ComponentTypeId
Source§fn clone(&self) -> ComponentTypeId
fn clone(&self) -> ComponentTypeId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentTypeId
impl Debug for ComponentTypeId
Source§impl DescribeWire for ComponentTypeId
impl DescribeWire for ComponentTypeId
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for ComponentTypeId
impl<'de> Deserialize<'de> for ComponentTypeId
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 ComponentTypeId
impl Display for ComponentTypeId
impl Eq for ComponentTypeId
Source§impl From<ComponentTypeId> for String
impl From<ComponentTypeId> for String
Source§fn from(value: ComponentTypeId) -> Self
fn from(value: ComponentTypeId) -> Self
Converts to this type from the input type.
Source§impl FromStr for ComponentTypeId
impl FromStr for ComponentTypeId
Source§impl Hash for ComponentTypeId
impl Hash for ComponentTypeId
Source§impl Ord for ComponentTypeId
impl Ord for ComponentTypeId
Source§fn cmp(&self, other: &ComponentTypeId) -> Ordering
fn cmp(&self, other: &ComponentTypeId) -> Ordering
1.21.0 (const: unstable) · 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 ComponentTypeId
impl PartialEq for ComponentTypeId
Source§impl PartialEq<&str> for ComponentTypeId
impl PartialEq<&str> for ComponentTypeId
Source§impl PartialEq<str> for ComponentTypeId
impl PartialEq<str> for ComponentTypeId
Source§impl PartialOrd for ComponentTypeId
impl PartialOrd for ComponentTypeId
Source§impl Serialize for ComponentTypeId
impl Serialize for ComponentTypeId
impl StructuralPartialEq for ComponentTypeId
Auto Trait Implementations§
impl Freeze for ComponentTypeId
impl RefUnwindSafe for ComponentTypeId
impl Send for ComponentTypeId
impl Sync for ComponentTypeId
impl Unpin for ComponentTypeId
impl UnsafeUnpin for ComponentTypeId
impl UnwindSafe for ComponentTypeId
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