pub enum PromptMessageV1Role {
User(PromptMessageV1RoleUser),
Assistant(PromptMessageV1RoleAssistant),
}Variants§
User(PromptMessageV1RoleUser)
Assistant(PromptMessageV1RoleAssistant)
Trait Implementations§
Source§impl Clone for PromptMessageV1Role
impl Clone for PromptMessageV1Role
Source§fn clone(&self) -> PromptMessageV1Role
fn clone(&self) -> PromptMessageV1Role
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 PromptMessageV1Role
impl Debug for PromptMessageV1Role
Source§impl<'de> Deserialize<'de> for PromptMessageV1Role
impl<'de> Deserialize<'de> for PromptMessageV1Role
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 PromptMessageV1Role
impl PartialEq for PromptMessageV1Role
Source§impl Serialize for PromptMessageV1Role
impl Serialize for PromptMessageV1Role
impl StructuralPartialEq for PromptMessageV1Role
Auto Trait Implementations§
impl Freeze for PromptMessageV1Role
impl RefUnwindSafe for PromptMessageV1Role
impl Send for PromptMessageV1Role
impl Sync for PromptMessageV1Role
impl Unpin for PromptMessageV1Role
impl UnwindSafe for PromptMessageV1Role
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