#[non_exhaustive]pub struct Artifact {
pub name: String,
pub display_name: String,
pub uri: String,
pub etag: String,
pub labels: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub state: State,
pub schema_title: String,
pub schema_version: String,
pub metadata: Option<Struct>,
pub description: String,
/* private fields */
}metadata-service or pipeline-service or schedule-service only.Expand description
Instance of a general artifact.
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 Artifact.
display_name: StringUser provided display name of the Artifact. May be up to 128 Unicode characters.
uri: StringThe uniform resource identifier of the artifact file. May be empty if there is no actual artifact file.
etag: StringAn eTag used to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
labels: HashMap<String, String>The labels with user-defined metadata to organize your Artifacts.
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 Artifact (System labels are excluded).
create_time: Option<Timestamp>Output only. Timestamp when this Artifact was created.
update_time: Option<Timestamp>Output only. Timestamp when this Artifact was last updated.
state: StateThe state of this Artifact. This is a property of the Artifact, and does not imply or capture any ongoing process. This property is managed by clients (such as Vertex AI Pipelines), and the system does not prescribe or check the validity of state transitions.
schema_title: StringThe title of the schema describing the metadata.
Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
schema_version: StringThe version of the schema in schema_name to use.
Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.
metadata: Option<Struct>Properties of the Artifact. Top level metadata keys’ heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
description: StringDescription of the Artifact
Implementations§
Source§impl Artifact
impl Artifact
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> 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 = Artifact::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 = Artifact::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Artifact::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 = Artifact::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 = Artifact::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Artifact::new().set_or_clear_update_time(None::<Timestamp>);