#[non_exhaustive]pub struct DenseVectorField {
pub dimensions: i32,
pub vertex_embedding_config: Option<VertexEmbeddingConfig>,
/* private fields */
}Expand description
Message describing a dense vector field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dimensions: i32Dimensionality of the vector field.
vertex_embedding_config: Option<VertexEmbeddingConfig>Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject.
Implementations§
Source§impl DenseVectorField
impl DenseVectorField
pub fn new() -> Self
Sourcepub fn set_dimensions<T: Into<i32>>(self, v: T) -> Self
pub fn set_dimensions<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_vertex_embedding_config<T>(self, v: T) -> Selfwhere
T: Into<VertexEmbeddingConfig>,
pub fn set_vertex_embedding_config<T>(self, v: T) -> Selfwhere
T: Into<VertexEmbeddingConfig>,
Sets the value of vertex_embedding_config.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::VertexEmbeddingConfig;
let x = DenseVectorField::new().set_vertex_embedding_config(VertexEmbeddingConfig::default()/* use setters */);Sourcepub fn set_or_clear_vertex_embedding_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<VertexEmbeddingConfig>,
pub fn set_or_clear_vertex_embedding_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<VertexEmbeddingConfig>,
Sets or clears the value of vertex_embedding_config.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::VertexEmbeddingConfig;
let x = DenseVectorField::new().set_or_clear_vertex_embedding_config(Some(VertexEmbeddingConfig::default()/* use setters */));
let x = DenseVectorField::new().set_or_clear_vertex_embedding_config(None::<VertexEmbeddingConfig>);Trait Implementations§
Source§impl Clone for DenseVectorField
impl Clone for DenseVectorField
Source§fn clone(&self) -> DenseVectorField
fn clone(&self) -> DenseVectorField
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 DenseVectorField
impl Debug for DenseVectorField
Source§impl Default for DenseVectorField
impl Default for DenseVectorField
Source§fn default() -> DenseVectorField
fn default() -> DenseVectorField
Returns the “default value” for a type. Read more
Source§impl Message for DenseVectorField
impl Message for DenseVectorField
Source§impl PartialEq for DenseVectorField
impl PartialEq for DenseVectorField
impl StructuralPartialEq for DenseVectorField
Auto Trait Implementations§
impl Freeze for DenseVectorField
impl RefUnwindSafe for DenseVectorField
impl Send for DenseVectorField
impl Sync for DenseVectorField
impl Unpin for DenseVectorField
impl UnsafeUnpin for DenseVectorField
impl UnwindSafe for DenseVectorField
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