pub struct Part {
pub text: Option<String>,
pub inline_data: Option<InlineData>,
pub file_data: Option<FileData>,
pub video_metadata: Option<VideoMetadata>,
pub executable_code: Option<ExecutableCode>,
pub code_execution_result: Option<CodeExecutionResult>,
pub function_call: Option<FunctionCall>,
}
Expand description
A datatype containing media that is part of a multi-part Content message
Fields§
§text: Option<String>
§inline_data: Option<InlineData>
§file_data: Option<FileData>
§video_metadata: Option<VideoMetadata>
§executable_code: Option<ExecutableCode>
§code_execution_result: Option<CodeExecutionResult>
§function_call: Option<FunctionCall>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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 Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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