#[non_exhaustive]pub enum Data {
Text(String),
InlineData(Box<Blob>),
File(Box<File>),
ExecutableCode(Box<ExecutableCode>),
CodeExecutionResult(Box<CodeExecutionResult>),
}Available on crate features
assistant-service or conversational-search-service or session-service only.Expand description
Contained data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
Inline text.
InlineData(Box<Blob>)
Inline binary data.
File(Box<File>)
A file, e.g., an audio summary.
ExecutableCode(Box<ExecutableCode>)
Code generated by the model that is meant to be executed.
CodeExecutionResult(Box<CodeExecutionResult>)
Result of executing an ExecutableCode.
Trait Implementations§
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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