#[non_exhaustive]pub struct DataObject {
pub name: String,
pub data_object_id: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub data: Option<Struct>,
pub vectors: HashMap<String, Vector>,
pub etag: String,
/* private fields */
}Expand description
A dataObject resource in Vector Search.
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.name: StringIdentifier. The fully qualified resource name of the dataObject.
Format:
projects/{project}/locations/{location}/collections/{collection}/dataObjects/{data_object_id}
The data_object_id must be 1-63 characters
long, and comply with RFC1035.
data_object_id: StringOutput only. The id of the dataObject.
create_time: Option<Timestamp>Output only. Timestamp the dataObject was created at.
update_time: Option<Timestamp>Output only. Timestamp the dataObject was last updated.
data: Option<Struct>Optional. The data of the dataObject.
vectors: HashMap<String, Vector>Optional. The vectors of the dataObject.
etag: StringOptional. The etag of the dataObject.
Implementations§
Source§impl DataObject
impl DataObject
pub fn new() -> Self
Sourcepub fn set_data_object_id<T: Into<String>>(self, v: T) -> Self
pub fn set_data_object_id<T: Into<String>>(self, v: T) -> Self
Sets the value of data_object_id.
§Example
ⓘ
let x = DataObject::new().set_data_object_id("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataObject::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataObject::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = DataObject::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataObject::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataObject::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = DataObject::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_or_clear_data<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_data<T>(self, v: Option<T>) -> Self
Sourcepub fn set_vectors<T, K, V>(self, v: T) -> Self
pub fn set_vectors<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DataObject
impl Clone for DataObject
Source§fn clone(&self) -> DataObject
fn clone(&self) -> DataObject
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 DataObject
impl Debug for DataObject
Source§impl Default for DataObject
impl Default for DataObject
Source§fn default() -> DataObject
fn default() -> DataObject
Returns the “default value” for a type. Read more
Source§impl PartialEq for DataObject
impl PartialEq for DataObject
impl StructuralPartialEq for DataObject
Auto Trait Implementations§
impl Freeze for DataObject
impl RefUnwindSafe for DataObject
impl Send for DataObject
impl Sync for DataObject
impl Unpin for DataObject
impl UnsafeUnpin for DataObject
impl UnwindSafe for DataObject
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