#[non_exhaustive]pub struct CreateSavedQueryRequest {
pub parent: String,
pub saved_query: Option<SavedQuery>,
pub saved_query_id: String,
/* private fields */
}Expand description
Request to create a saved query.
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.parent: StringRequired. The name of the project/folder/organization where this saved_query should be created in. It can only be an organization number (such as “organizations/123”), a folder number (such as “folders/123”), a project ID (such as “projects/my-project-id”), or a project number (such as “projects/12345”).
saved_query: Option<SavedQuery>Required. The saved_query details. The name field must be empty as it
will be generated based on the parent and saved_query_id.
saved_query_id: StringRequired. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query’s resource name.
This value should be 4-63 characters, and valid characters
are [a-z][0-9]-.
Notice that this field is required in the saved query creation, and the
name field of the saved_query will be ignored.
Implementations§
Source§impl CreateSavedQueryRequest
impl CreateSavedQueryRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_saved_query<T>(self, v: T) -> Selfwhere
T: Into<SavedQuery>,
pub fn set_saved_query<T>(self, v: T) -> Selfwhere
T: Into<SavedQuery>,
Sets the value of saved_query.
Sourcepub fn set_or_clear_saved_query<T>(self, v: Option<T>) -> Selfwhere
T: Into<SavedQuery>,
pub fn set_or_clear_saved_query<T>(self, v: Option<T>) -> Selfwhere
T: Into<SavedQuery>,
Sets or clears the value of saved_query.
Sourcepub fn set_saved_query_id<T: Into<String>>(self, v: T) -> Self
pub fn set_saved_query_id<T: Into<String>>(self, v: T) -> Self
Sets the value of saved_query_id.
Trait Implementations§
Source§impl Clone for CreateSavedQueryRequest
impl Clone for CreateSavedQueryRequest
Source§fn clone(&self) -> CreateSavedQueryRequest
fn clone(&self) -> CreateSavedQueryRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more