pub struct GoogleEmbeddingOptions {
pub output_dimensionality: Option<u32>,
pub task_type: Option<String>,
pub content: Option<Vec<Option<Vec<JsonValue>>>>,
}Expand description
Embedding options (provider_options["google"]).
Fields§
§output_dimensionality: Option<u32>Output dimensionality.
task_type: Option<String>Task type (SEMANTIC_SIMILARITY, RETRIEVAL_DOCUMENT, …).
content: Option<Vec<Option<Vec<JsonValue>>>>Extra multimodal parts per value ([{text} | {inlineData} | {fileData}]
or null); must have one entry per value.
Trait Implementations§
Source§impl Clone for GoogleEmbeddingOptions
impl Clone for GoogleEmbeddingOptions
Source§fn clone(&self) -> GoogleEmbeddingOptions
fn clone(&self) -> GoogleEmbeddingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoogleEmbeddingOptions
impl Debug for GoogleEmbeddingOptions
Source§impl Default for GoogleEmbeddingOptions
impl Default for GoogleEmbeddingOptions
Source§fn default() -> GoogleEmbeddingOptions
fn default() -> GoogleEmbeddingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleEmbeddingOptions
impl<'de> Deserialize<'de> for GoogleEmbeddingOptions
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
Source§impl PartialEq for GoogleEmbeddingOptions
impl PartialEq for GoogleEmbeddingOptions
impl StructuralPartialEq for GoogleEmbeddingOptions
Auto Trait Implementations§
impl Freeze for GoogleEmbeddingOptions
impl RefUnwindSafe for GoogleEmbeddingOptions
impl Send for GoogleEmbeddingOptions
impl Sync for GoogleEmbeddingOptions
impl Unpin for GoogleEmbeddingOptions
impl UnsafeUnpin for GoogleEmbeddingOptions
impl UnwindSafe for GoogleEmbeddingOptions
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