#[non_exhaustive]pub struct Aspect {
pub aspect_type: String,
pub path: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub data: Option<Struct>,
pub aspect_source: Option<AspectSource>,
/* private fields */
}Expand description
An aspect is a single piece of metadata describing an entry.
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.aspect_type: StringOutput only. The resource name of the type used to create this Aspect.
path: StringOutput only. The path in the entry under which the aspect is attached.
create_time: Option<Timestamp>Output only. The time when the Aspect was created.
update_time: Option<Timestamp>Output only. The time when the Aspect was last updated.
data: Option<Struct>Required. The content of the aspect, according to its aspect type schema. The maximum size of the field is 120KB (encoded as UTF-8).
aspect_source: Option<AspectSource>Optional. Information related to the source system of the aspect.
Implementations§
Source§impl Aspect
impl Aspect
pub fn new() -> Self
Sourcepub fn set_aspect_type<T: Into<String>>(self, v: T) -> Self
pub fn set_aspect_type<T: Into<String>>(self, v: T) -> Self
Sets the value of aspect_type.
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.
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.
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.
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.
Sourcepub fn set_or_clear_data<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_data<T>(self, v: Option<T>) -> Self
Sets or clears the value of data.
Sourcepub fn set_aspect_source<T>(self, v: T) -> Selfwhere
T: Into<AspectSource>,
pub fn set_aspect_source<T>(self, v: T) -> Selfwhere
T: Into<AspectSource>,
Sets the value of aspect_source.
Sourcepub fn set_or_clear_aspect_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<AspectSource>,
pub fn set_or_clear_aspect_source<T>(self, v: Option<T>) -> Selfwhere
T: Into<AspectSource>,
Sets or clears the value of aspect_source.