pub enum InteractionTurnContent {
Text(String),
Contents(Vec<InteractionContent>),
}Expand description
Turn 的 content 字段:可以是 string 或 content 数组。
Variants§
Text(String)
Contents(Vec<InteractionContent>)
Implementations§
Trait Implementations§
Source§impl Clone for InteractionTurnContent
impl Clone for InteractionTurnContent
Source§fn clone(&self) -> InteractionTurnContent
fn clone(&self) -> InteractionTurnContent
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 InteractionTurnContent
impl Debug for InteractionTurnContent
Source§impl<'de> Deserialize<'de> for InteractionTurnContent
impl<'de> Deserialize<'de> for InteractionTurnContent
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
Auto Trait Implementations§
impl Freeze for InteractionTurnContent
impl RefUnwindSafe for InteractionTurnContent
impl Send for InteractionTurnContent
impl Sync for InteractionTurnContent
impl Unpin for InteractionTurnContent
impl UnsafeUnpin for InteractionTurnContent
impl UnwindSafe for InteractionTurnContent
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