pub enum AiMessagePartKind {
Text,
Image,
Audio,
Video,
File,
ToolCall,
ToolResult,
Citation,
ThoughtSummary,
Metadata,
Custom,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AiMessagePartKind
impl Clone for AiMessagePartKind
Source§fn clone(&self) -> AiMessagePartKind
fn clone(&self) -> AiMessagePartKind
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 AiMessagePartKind
impl Debug for AiMessagePartKind
Source§impl Display for AiMessagePartKind
impl Display for AiMessagePartKind
Source§impl FromStr for AiMessagePartKind
impl FromStr for AiMessagePartKind
Source§type Err = AiMessageError
type Err = AiMessageError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<AiMessagePartKind, <AiMessagePartKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiMessagePartKind, <AiMessagePartKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AiMessagePartKind
impl Hash for AiMessagePartKind
Source§impl Ord for AiMessagePartKind
impl Ord for AiMessagePartKind
Source§fn cmp(&self, other: &AiMessagePartKind) -> Ordering
fn cmp(&self, other: &AiMessagePartKind) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for AiMessagePartKind
impl PartialEq for AiMessagePartKind
Source§fn eq(&self, other: &AiMessagePartKind) -> bool
fn eq(&self, other: &AiMessagePartKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AiMessagePartKind
impl PartialOrd for AiMessagePartKind
impl Copy for AiMessagePartKind
impl Eq for AiMessagePartKind
impl StructuralPartialEq for AiMessagePartKind
Auto Trait Implementations§
impl Freeze for AiMessagePartKind
impl RefUnwindSafe for AiMessagePartKind
impl Send for AiMessagePartKind
impl Sync for AiMessagePartKind
impl Unpin for AiMessagePartKind
impl UnsafeUnpin for AiMessagePartKind
impl UnwindSafe for AiMessagePartKind
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