pub struct AiConversationTextPart {
pub id: Option<String>,
pub type: Option<AiConversationPartType>,
pub metadata: Option<AiConversationPartMetadata>,
pub body_data: Option<Value>,
pub body: Option<String>,
}Expand description
A text part in an AI conversation.
Fields§
§id: Option<String>The ID of the part.
type: Option<AiConversationPartType>The type of the part.
metadata: Option<AiConversationPartMetadata>The metadata of the part.
body_data: Option<Value>The data of the text part.
body: Option<String>The Markdown body of the text part.
Trait Implementations§
Source§impl Clone for AiConversationTextPart
impl Clone for AiConversationTextPart
Source§fn clone(&self) -> AiConversationTextPart
fn clone(&self) -> AiConversationTextPart
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 AiConversationTextPart
impl Debug for AiConversationTextPart
Source§impl Default for AiConversationTextPart
impl Default for AiConversationTextPart
Source§fn default() -> AiConversationTextPart
fn default() -> AiConversationTextPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AiConversationTextPartwhere
AiConversationTextPart: Default,
impl<'de> Deserialize<'de> for AiConversationTextPartwhere
AiConversationTextPart: Default,
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 AiConversationTextPart
impl RefUnwindSafe for AiConversationTextPart
impl Send for AiConversationTextPart
impl Sync for AiConversationTextPart
impl Unpin for AiConversationTextPart
impl UnsafeUnpin for AiConversationTextPart
impl UnwindSafe for AiConversationTextPart
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