pub struct AiConversationPromptPart {
pub id: Option<String>,
pub type: Option<AiConversationPartType>,
pub metadata: Option<AiConversationPartMetadata>,
pub body_data: Option<Value>,
pub body: Option<String>,
pub user: Option<User>,
}Expand description
A prompt 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 prompt part.
body: Option<String>The Markdown body of the prompt part.
user: Option<User>The user who created the prompt part.
Trait Implementations§
Source§impl Clone for AiConversationPromptPart
impl Clone for AiConversationPromptPart
Source§fn clone(&self) -> AiConversationPromptPart
fn clone(&self) -> AiConversationPromptPart
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 AiConversationPromptPart
impl Debug for AiConversationPromptPart
Source§impl Default for AiConversationPromptPart
impl Default for AiConversationPromptPart
Source§fn default() -> AiConversationPromptPart
fn default() -> AiConversationPromptPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AiConversationPromptPartwhere
AiConversationPromptPart: Default,
impl<'de> Deserialize<'de> for AiConversationPromptPartwhere
AiConversationPromptPart: 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 AiConversationPromptPart
impl RefUnwindSafe for AiConversationPromptPart
impl Send for AiConversationPromptPart
impl Sync for AiConversationPromptPart
impl Unpin for AiConversationPromptPart
impl UnsafeUnpin for AiConversationPromptPart
impl UnwindSafe for AiConversationPromptPart
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