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