pub enum DisplayRole {
User,
Assistant,
ToolResult,
Error,
System,
}Expand description
Role of a message for display styling.
Variants§
Trait Implementations§
Source§impl Clone for DisplayRole
impl Clone for DisplayRole
Source§fn clone(&self) -> DisplayRole
fn clone(&self) -> DisplayRole
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 moreSource§impl Debug for DisplayRole
impl Debug for DisplayRole
Source§impl PartialEq for DisplayRole
impl PartialEq for DisplayRole
impl Copy for DisplayRole
impl Eq for DisplayRole
impl StructuralPartialEq for DisplayRole
Auto Trait Implementations§
impl Freeze for DisplayRole
impl RefUnwindSafe for DisplayRole
impl Send for DisplayRole
impl Sync for DisplayRole
impl Unpin for DisplayRole
impl UnsafeUnpin for DisplayRole
impl UnwindSafe for DisplayRole
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