pub enum SystemMessageRole {
System,
Developer,
Unknown,
}Expand description
Message role: “system” for system prompts, “developer” for developer-injected instructions
Variants§
Trait Implementations§
Source§impl Clone for SystemMessageRole
impl Clone for SystemMessageRole
Source§fn clone(&self) -> SystemMessageRole
fn clone(&self) -> SystemMessageRole
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 SystemMessageRole
impl Debug for SystemMessageRole
Source§impl<'de> Deserialize<'de> for SystemMessageRole
impl<'de> Deserialize<'de> for SystemMessageRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SystemMessageRole
impl PartialEq for SystemMessageRole
Source§fn eq(&self, other: &SystemMessageRole) -> bool
fn eq(&self, other: &SystemMessageRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SystemMessageRole
impl Serialize for SystemMessageRole
impl Eq for SystemMessageRole
impl StructuralPartialEq for SystemMessageRole
Auto Trait Implementations§
impl Freeze for SystemMessageRole
impl RefUnwindSafe for SystemMessageRole
impl Send for SystemMessageRole
impl Sync for SystemMessageRole
impl Unpin for SystemMessageRole
impl UnsafeUnpin for SystemMessageRole
impl UnwindSafe for SystemMessageRole
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