#[non_exhaustive]pub struct DataItem {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub payload: Option<Value>,
pub etag: String,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}dataset-service only.Expand description
A piece of data in a Dataset. Could be an image, a video, a document or plain text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the DataItem.
create_time: Option<Timestamp>Output only. Timestamp when this DataItem was created.
update_time: Option<Timestamp>Output only. Timestamp when this DataItem was last updated.
labels: HashMap<String, String>Optional. The labels with user-defined metadata to organize your DataItems.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one DataItem(System labels are excluded).
See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with “aiplatform.googleapis.com/” and are immutable.
payload: Option<Value>Required. The data that the DataItem represents (for example, an image or a text snippet). The schema of the payload is stored in the parent Dataset’s metadata schema’s dataItemSchemaUri field.
etag: StringOptional. Used to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl DataItem
impl DataItem
pub fn new() -> Self
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 = DataItem::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 = DataItem::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = DataItem::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 = DataItem::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 = DataItem::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = DataItem::new().set_or_clear_update_time(None::<Timestamp>);