pub enum AiMessageRole {
System,
Developer,
User,
Assistant,
Tool,
Function,
Observer,
Evaluator,
Unknown,
}Variants§
Implementations§
Source§impl AiMessageRole
impl AiMessageRole
Trait Implementations§
Source§impl Clone for AiMessageRole
impl Clone for AiMessageRole
Source§fn clone(&self) -> AiMessageRole
fn clone(&self) -> AiMessageRole
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 AiMessageRole
impl Debug for AiMessageRole
Source§impl Display for AiMessageRole
impl Display for AiMessageRole
Source§impl FromStr for AiMessageRole
impl FromStr for AiMessageRole
Source§type Err = AiMessageError
type Err = AiMessageError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<AiMessageRole, <AiMessageRole as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiMessageRole, <AiMessageRole as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for AiMessageRole
impl Hash for AiMessageRole
Source§impl Ord for AiMessageRole
impl Ord for AiMessageRole
Source§fn cmp(&self, other: &AiMessageRole) -> Ordering
fn cmp(&self, other: &AiMessageRole) -> 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 AiMessageRole
impl PartialEq for AiMessageRole
Source§fn eq(&self, other: &AiMessageRole) -> bool
fn eq(&self, other: &AiMessageRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AiMessageRole
impl PartialOrd for AiMessageRole
impl Copy for AiMessageRole
impl Eq for AiMessageRole
impl StructuralPartialEq for AiMessageRole
Auto Trait Implementations§
impl Freeze for AiMessageRole
impl RefUnwindSafe for AiMessageRole
impl Send for AiMessageRole
impl Sync for AiMessageRole
impl Unpin for AiMessageRole
impl UnsafeUnpin for AiMessageRole
impl UnwindSafe for AiMessageRole
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