#[non_exhaustive]pub struct Context {
pub name: String,
pub display_name: String,
pub etag: String,
pub labels: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub parent_contexts: Vec<String>,
pub schema_title: String,
pub schema_version: String,
pub metadata: Option<Struct>,
pub description: String,
/* private fields */
}Expand description
Instance of a general context.
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: StringImmutable. The resource name of the Context.
display_name: StringUser provided display name of the Context. May be up to 128 Unicode characters.
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 Contexts.
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 Context (System labels are excluded).
create_time: Option<Timestamp>Output only. Timestamp when this Context was created.
update_time: Option<Timestamp>Output only. Timestamp when this Context was last updated.
parent_contexts: Vec<String>Output only. A list of resource names of Contexts that are parents of this Context. A Context may have at most 10 parent_contexts.
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 Context. Top level metadata keys’ heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.
description: StringDescription of the Context
Implementations§
Source§impl Context
impl Context
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
Sets the value of display_name.
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.
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_parent_contexts<T, V>(self, v: T) -> Self
pub fn set_parent_contexts<T, V>(self, v: T) -> Self
Sets the value of parent_contexts.
Sourcepub fn set_schema_title<T: Into<String>>(self, v: T) -> Self
pub fn set_schema_title<T: Into<String>>(self, v: T) -> Self
Sets the value of schema_title.
Sourcepub fn set_schema_version<T: Into<String>>(self, v: T) -> Self
pub fn set_schema_version<T: Into<String>>(self, v: T) -> Self
Sets the value of schema_version.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.