pub struct GoogleCloudAiplatformV1Part {
pub function_call: Option<GoogleCloudAiplatformV1FunctionCall>,
pub file_data: Option<GoogleCloudAiplatformV1FileData>,
pub text: Option<String>,
pub video_metadata: Option<GoogleCloudAiplatformV1VideoMetadata>,
pub inline_data: Option<GoogleCloudAiplatformV1Blob>,
pub function_response: Option<GoogleCloudAiplatformV1FunctionResponse>,
}Expand description
A datatype containing media that is part of a multi-part Content message. A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in Part.data. A Part must have a fixed IANA MIME type identifying the type and subtype of the media if inline_data or file_data field is filled with raw bytes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§function_call: Option<GoogleCloudAiplatformV1FunctionCall>Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values.
file_data: Option<GoogleCloudAiplatformV1FileData>Optional. URI based data.
text: Option<String>Optional. Text part (can be code).
video_metadata: Option<GoogleCloudAiplatformV1VideoMetadata>Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
inline_data: Option<GoogleCloudAiplatformV1Blob>Optional. Inlined bytes data.
function_response: Option<GoogleCloudAiplatformV1FunctionResponse>Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1Part
impl Clone for GoogleCloudAiplatformV1Part
Source§fn clone(&self) -> GoogleCloudAiplatformV1Part
fn clone(&self) -> GoogleCloudAiplatformV1Part
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleCloudAiplatformV1Part
impl Debug for GoogleCloudAiplatformV1Part
Source§impl Default for GoogleCloudAiplatformV1Part
impl Default for GoogleCloudAiplatformV1Part
Source§fn default() -> GoogleCloudAiplatformV1Part
fn default() -> GoogleCloudAiplatformV1Part
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Part
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1Part
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>,
impl Part for GoogleCloudAiplatformV1Part
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1Part
impl RefUnwindSafe for GoogleCloudAiplatformV1Part
impl Send for GoogleCloudAiplatformV1Part
impl Sync for GoogleCloudAiplatformV1Part
impl Unpin for GoogleCloudAiplatformV1Part
impl UnwindSafe for GoogleCloudAiplatformV1Part
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more