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