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