Struct AiParticipantId
pub struct AiParticipantId(/* private fields */);Implementations§
§impl AiParticipantId
impl AiParticipantId
pub fn new(value: impl AsRef<str>) -> Result<AiParticipantId, AiRoleError>
pub fn as_str(&self) -> &str
pub fn value(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
§impl AsRef<str> for AiParticipantId
impl AsRef<str> for AiParticipantId
§impl Clone for AiParticipantId
impl Clone for AiParticipantId
§fn clone(&self) -> AiParticipantId
fn clone(&self) -> AiParticipantId
Returns a duplicate 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 more§impl Debug for AiParticipantId
impl Debug for AiParticipantId
§impl Display for AiParticipantId
impl Display for AiParticipantId
§impl FromStr for AiParticipantId
impl FromStr for AiParticipantId
§type Err = AiRoleError
type Err = AiRoleError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AiParticipantId, <AiParticipantId as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiParticipantId, <AiParticipantId as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiParticipantId
impl Hash for AiParticipantId
§impl Ord for AiParticipantId
impl Ord for AiParticipantId
§impl PartialEq for AiParticipantId
impl PartialEq for AiParticipantId
§impl PartialOrd for AiParticipantId
impl PartialOrd for AiParticipantId
§impl TryFrom<&str> for AiParticipantId
impl TryFrom<&str> for AiParticipantId
§type Error = AiRoleError
type Error = AiRoleError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<AiParticipantId, <AiParticipantId as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AiParticipantId, <AiParticipantId as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AiParticipantId
impl StructuralPartialEq for AiParticipantId
Auto Trait Implementations§
impl Freeze for AiParticipantId
impl RefUnwindSafe for AiParticipantId
impl Send for AiParticipantId
impl Sync for AiParticipantId
impl Unpin for AiParticipantId
impl UnsafeUnpin for AiParticipantId
impl UnwindSafe for AiParticipantId
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