pub enum ContentRole {
User,
Assistant,
}Expand description
Role indicating who content is intended for.
Used in content annotations to specify the target audience.
Variants§
Trait Implementations§
Source§impl Clone for ContentRole
impl Clone for ContentRole
Source§fn clone(&self) -> ContentRole
fn clone(&self) -> ContentRole
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 ContentRole
impl Debug for ContentRole
Source§impl<'de> Deserialize<'de> for ContentRole
impl<'de> Deserialize<'de> for ContentRole
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 ContentRole
impl PartialEq for ContentRole
Source§impl Serialize for ContentRole
impl Serialize for ContentRole
impl Copy for ContentRole
impl Eq for ContentRole
impl StructuralPartialEq for ContentRole
Auto Trait Implementations§
impl Freeze for ContentRole
impl RefUnwindSafe for ContentRole
impl Send for ContentRole
impl Sync for ContentRole
impl Unpin for ContentRole
impl UnwindSafe for ContentRole
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