pub struct ComponentSpecId(/* private fields */);Expand description
ComponentSpecId
App-scoped identity of one declared permitted Component topology.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ComponentSpecId
impl AsRef<str> for ComponentSpecId
Source§impl Borrow<str> for ComponentSpecId
impl Borrow<str> for ComponentSpecId
Source§impl CandidType for ComponentSpecId
impl CandidType for ComponentSpecId
Source§impl Clone for ComponentSpecId
impl Clone for ComponentSpecId
Source§fn clone(&self) -> ComponentSpecId
fn clone(&self) -> ComponentSpecId
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 ComponentSpecId
impl Debug for ComponentSpecId
Source§impl<'de> Deserialize<'de> for ComponentSpecId
impl<'de> Deserialize<'de> for ComponentSpecId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ComponentSpecId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ComponentSpecId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ComponentSpecId
impl Display for ComponentSpecId
impl Eq for ComponentSpecId
Source§impl FromStr for ComponentSpecId
impl FromStr for ComponentSpecId
Source§type Err = ComponentSpecIdParseError
type Err = ComponentSpecIdParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ComponentSpecId, <ComponentSpecId as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ComponentSpecId, <ComponentSpecId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ComponentSpecId
impl Hash for ComponentSpecId
Source§impl Ord for ComponentSpecId
impl Ord for ComponentSpecId
Source§fn cmp(&self, other: &ComponentSpecId) -> Ordering
fn cmp(&self, other: &ComponentSpecId) -> 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 ComponentSpecId
impl PartialEq for ComponentSpecId
Source§impl PartialOrd for ComponentSpecId
impl PartialOrd for ComponentSpecId
Source§impl Serialize for ComponentSpecId
impl Serialize for ComponentSpecId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Storable for ComponentSpecId
impl Storable for ComponentSpecId
Source§fn to_bytes(&self) -> Cow<'_, [u8]>
fn to_bytes(&self) -> Cow<'_, [u8]>
Converts the element into a possibly borrowed byte slice. Read more
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> ComponentSpecId
fn from_bytes(bytes: Cow<'_, [u8]>) -> ComponentSpecId
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but checks that bytes conform to declared bounds.Source§fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
Like
into_bytes, but checks that bytes conform to declared bounds.Source§fn check_bounds(bytes: &[u8])
fn check_bounds(bytes: &[u8])
Validates that a byte slice fits within this type’s declared bounds.
impl StructuralPartialEq for ComponentSpecId
Source§impl TryFrom<String> for ComponentSpecId
impl TryFrom<String> for ComponentSpecId
Source§type Error = ComponentSpecIdParseError
type Error = ComponentSpecIdParseError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<ComponentSpecId, <ComponentSpecId as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<ComponentSpecId, <ComponentSpecId as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComponentSpecId
impl RefUnwindSafe for ComponentSpecId
impl Send for ComponentSpecId
impl Sync for ComponentSpecId
impl Unpin for ComponentSpecId
impl UnsafeUnpin for ComponentSpecId
impl UnwindSafe for ComponentSpecId
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