#[non_exhaustive]pub struct Annotation {
pub name: String,
pub payload_schema_uri: String,
pub payload: Option<Value>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub annotation_source: Option<UserActionReference>,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
Used to assign specific AnnotationSpec to a particular area of a DataItem or the whole part of the DataItem.
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. Resource name of the Annotation.
payload_schema_uri: StringRequired. Google Cloud Storage URI points to a YAML file describing payload. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the chosen schema must be consistent with the parent Dataset’s metadata.
payload: Option<Value>Required. The schema of the payload can be found in payload_schema.
create_time: Option<Timestamp>Output only. Timestamp when this Annotation was created.
update_time: Option<Timestamp>Output only. Timestamp when this Annotation was last updated.
etag: StringOptional. Used to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
annotation_source: Option<UserActionReference>Output only. The source of the Annotation.
labels: HashMap<String, String>Optional. The labels with user-defined metadata to organize your Annotations.
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 Annotation(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. Following system labels exist for each Annotation:
-
“aiplatform.googleapis.com/annotation_set_name”: optional, name of the UI’s annotation set this Annotation belongs to. If not set, the Annotation is not visible in the UI.
-
“aiplatform.googleapis.com/payload_schema”: output only, its value is the payload_schema’s title.
Implementations§
Source§impl Annotation
impl Annotation
pub fn new() -> Self
Sourcepub fn set_payload_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_payload_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of payload_schema_uri.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_annotation_source<T: Into<Option<UserActionReference>>>(
self,
v: T,
) -> Self
pub fn set_annotation_source<T: Into<Option<UserActionReference>>>( self, v: T, ) -> Self
Sets the value of annotation_source.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more