pub struct CapabilityName(/* private fields */);Expand description
Generic capability name exposed by a Core.
Implementations§
Source§impl CapabilityName
impl CapabilityName
Sourcepub fn new(value: impl Into<String>) -> Result<CapabilityName, RuntimeError>
pub fn new(value: impl Into<String>) -> Result<CapabilityName, RuntimeError>
Creates and validates an identifier.
Sourcepub fn validate(&self) -> Result<(), RuntimeError>
pub fn validate(&self) -> Result<(), RuntimeError>
Revalidates an identifier received from a serialized boundary.
Trait Implementations§
Source§impl Clone for CapabilityName
impl Clone for CapabilityName
Source§fn clone(&self) -> CapabilityName
fn clone(&self) -> CapabilityName
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 CapabilityName
impl Debug for CapabilityName
Source§impl<'de> Deserialize<'de> for CapabilityName
impl<'de> Deserialize<'de> for CapabilityName
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CapabilityName
Source§impl Hash for CapabilityName
impl Hash for CapabilityName
Source§impl PartialEq for CapabilityName
impl PartialEq for CapabilityName
Source§impl Serialize for CapabilityName
impl Serialize for CapabilityName
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
impl StructuralPartialEq for CapabilityName
Source§impl TryFrom<&str> for CapabilityName
impl TryFrom<&str> for CapabilityName
Source§type Error = RuntimeError
type Error = RuntimeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<CapabilityName, <CapabilityName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<CapabilityName, <CapabilityName as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for CapabilityName
impl TryFrom<String> for CapabilityName
Source§type Error = RuntimeError
type Error = RuntimeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<CapabilityName, <CapabilityName as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<CapabilityName, <CapabilityName as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CapabilityName
impl RefUnwindSafe for CapabilityName
impl Send for CapabilityName
impl Sync for CapabilityName
impl Unpin for CapabilityName
impl UnsafeUnpin for CapabilityName
impl UnwindSafe for CapabilityName
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