#[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 */
}metadata-service only.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
Sourcepub fn set_artifact<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_execution<T: Into<String>>(self, v: T) -> Self
pub fn set_execution<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_event_time<T>(self, v: T) -> Self
pub fn set_event_time<T>(self, v: T) -> Self
Sets the value of event_time.
§Example
use wkt::Timestamp;
let x = Event::new().set_event_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of event_time.
§Example
use wkt::Timestamp;
let x = Event::new().set_or_clear_event_time(Some(Timestamp::default()/* use setters */));
let x = Event::new().set_or_clear_event_time(None::<Timestamp>);Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request