pub enum PromptRole {
System,
Developer,
User,
Assistant,
}
Variants§
Trait Implementations§
Source§impl Clone for PromptRole
impl Clone for PromptRole
Source§fn clone(&self) -> PromptRole
fn clone(&self) -> PromptRole
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 PromptRole
impl Debug for PromptRole
Source§impl Display for PromptRole
impl Display for PromptRole
Source§impl FromStr for PromptRole
impl FromStr for PromptRole
Source§type Err = FromStrError
type Err = FromStrError
The associated error which can be returned from parsing.
Source§fn from_str(src: &str) -> Result<PromptRole, FromStrError>
fn from_str(src: &str) -> Result<PromptRole, FromStrError>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for PromptRole
impl Hash for PromptRole
Source§impl Into<String> for PromptRole
impl Into<String> for PromptRole
Source§impl Labeled for PromptRole
impl Labeled for PromptRole
Source§impl Named for PromptRole
impl Named for PromptRole
Source§impl Ord for PromptRole
impl Ord for PromptRole
Source§fn cmp(&self, other: &PromptRole) -> Ordering
fn cmp(&self, other: &PromptRole) -> 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
Source§impl PartialEq for PromptRole
impl PartialEq for PromptRole
Source§impl PartialOrd for PromptRole
impl PartialOrd for PromptRole
impl Eq for PromptRole
impl StructuralPartialEq for PromptRole
Auto Trait Implementations§
impl Freeze for PromptRole
impl RefUnwindSafe for PromptRole
impl Send for PromptRole
impl Sync for PromptRole
impl Unpin for PromptRole
impl UnwindSafe for PromptRole
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