pub enum AssistantRole {
Assistant,
}Expand description
The role for an output message - always assistant.
This type ensures type safety by only allowing the assistant role.
Variants§
Assistant
Trait Implementations§
Source§impl Clone for AssistantRole
impl Clone for AssistantRole
Source§fn clone(&self) -> AssistantRole
fn clone(&self) -> AssistantRole
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 AssistantRole
impl Debug for AssistantRole
Source§impl Default for AssistantRole
impl Default for AssistantRole
Source§fn default() -> AssistantRole
fn default() -> AssistantRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantRole
impl<'de> Deserialize<'de> for AssistantRole
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 AssistantRole
impl PartialEq for AssistantRole
Source§impl Serialize for AssistantRole
impl Serialize for AssistantRole
impl Copy for AssistantRole
impl Eq for AssistantRole
impl StructuralPartialEq for AssistantRole
Auto Trait Implementations§
impl Freeze for AssistantRole
impl RefUnwindSafe for AssistantRole
impl Send for AssistantRole
impl Sync for AssistantRole
impl Unpin for AssistantRole
impl UnwindSafe for AssistantRole
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