#[non_exhaustive]pub struct Content {
pub name: String,
pub uid: String,
pub path: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub data: Option<Data>,
pub content: Option<Content>,
/* private fields */
}Expand description
Content represents a user-visible notebook or a sql script
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 relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
uid: StringOutput only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
path: StringRequired. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
create_time: Option<Timestamp>Output only. Content creation time.
update_time: Option<Timestamp>Output only. The time when the content was last updated.
labels: HashMap<String, String>Optional. User defined labels for the content.
description: StringOptional. Description of the content.
data: Option<Data>Only returned in GetContent requests and not in ListContent request.
content: Option<Content>Types of content
Implementations§
Source§impl Content
impl Content
pub fn new() -> 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.
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_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_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_data<T: Into<Option<Data>>>(self, v: T) -> Self
pub fn set_data<T: Into<Option<Data>>>(self, v: T) -> Self
Sets the value of data.
Note that all the setters affecting data are mutually
exclusive.
Sourcepub fn data_text(&self) -> Option<&String>
pub fn data_text(&self) -> Option<&String>
The value of data
if it holds a DataText, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_text<T: Into<String>>(self, v: T) -> Self
pub fn set_data_text<T: Into<String>>(self, v: T) -> Self
Sets the value of data
to hold a DataText.
Note that all the setters affecting data are
mutually exclusive.
Sourcepub fn set_content<T: Into<Option<Content>>>(self, v: T) -> Self
pub fn set_content<T: Into<Option<Content>>>(self, v: T) -> Self
Sets the value of content.
Note that all the setters affecting content are mutually
exclusive.
Sourcepub fn sql_script(&self) -> Option<&Box<SqlScript>>
pub fn sql_script(&self) -> Option<&Box<SqlScript>>
The value of content
if it holds a SqlScript, None if the field is not set or
holds a different branch.
Sourcepub fn set_sql_script<T: Into<Box<SqlScript>>>(self, v: T) -> Self
pub fn set_sql_script<T: Into<Box<SqlScript>>>(self, v: T) -> Self
Sets the value of content
to hold a SqlScript.
Note that all the setters affecting content are
mutually exclusive.