#[non_exhaustive]pub struct Event {
pub artifact: String,
pub execution: String,
pub event_time: Option<Timestamp>,
pub type: Type,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
An edge describing the relationship between an Artifact and an Execution in a lineage graph.
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.artifact: StringRequired. The relative resource name of the Artifact in the Event.
execution: StringOutput only. The relative resource name of the Execution in the Event.
event_time: Option<Timestamp>Output only. Time the Event occurred.
type: TypeRequired. The type of the Event.
labels: HashMap<String, String>The labels with user-defined metadata to annotate Events.
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 Event (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.
Implementations§
Source§impl Event
impl Event
pub fn new() -> Self
Sourcepub fn set_artifact<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact.
Sourcepub fn set_execution<T: Into<String>>(self, v: T) -> Self
pub fn set_execution<T: Into<String>>(self, v: T) -> Self
Sets the value of execution.
Sourcepub fn set_event_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_event_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of event_time.
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.