#[non_exhaustive]pub struct SavedQuery {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub creator: String,
pub last_update_time: Option<Timestamp>,
pub last_updater: String,
pub labels: HashMap<String, String>,
pub content: Option<QueryContent>,
/* private fields */
}Expand description
A saved query which can be shared with others or used later.
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: StringThe resource name of the saved query. The format must be:
- projects/project_number/savedQueries/saved_query_id
- folders/folder_number/savedQueries/saved_query_id
- organizations/organization_number/savedQueries/saved_query_id
description: StringThe description of this saved query. This value should be fewer than 255 characters.
create_time: Option<Timestamp>Output only. The create time of this saved query.
creator: StringOutput only. The account’s email address who has created this saved query.
last_update_time: Option<Timestamp>Output only. The last update time of this saved query.
last_updater: StringOutput only. The account’s email address who has updated this saved query most recently.
labels: HashMap<String, String>Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
content: Option<QueryContent>The query content.
Implementations§
Source§impl SavedQuery
impl SavedQuery
pub fn new() -> Self
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_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_creator<T: Into<String>>(self, v: T) -> Self
pub fn set_creator<T: Into<String>>(self, v: T) -> Self
Sets the value of creator.
Sourcepub fn set_last_update_time<T>(self, v: T) -> Self
pub fn set_last_update_time<T>(self, v: T) -> Self
Sets the value of last_update_time.
Sourcepub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_update_time.
Sourcepub fn set_last_updater<T: Into<String>>(self, v: T) -> Self
pub fn set_last_updater<T: Into<String>>(self, v: T) -> Self
Sets the value of last_updater.
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_content<T>(self, v: T) -> Selfwhere
T: Into<QueryContent>,
pub fn set_content<T>(self, v: T) -> Selfwhere
T: Into<QueryContent>,
Sets the value of content.
Sourcepub fn set_or_clear_content<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryContent>,
pub fn set_or_clear_content<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryContent>,
Sets or clears the value of content.
Trait Implementations§
Source§impl Clone for SavedQuery
impl Clone for SavedQuery
Source§fn clone(&self) -> SavedQuery
fn clone(&self) -> SavedQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more