#[non_exhaustive]pub struct CreateQueryTemplateRequest {
pub parent: String,
pub query_template_id: String,
pub query_template: Option<QueryTemplate>,
/* private fields */
}Expand description
Message for creating a QueryTemplate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource path of the QueryTemplate.
e.g.
projects/myproject/locations/us/dataExchanges/123/queryTemplates/myQueryTemplate.
query_template_id: StringRequired. The ID of the QueryTemplate to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.
query_template: Option<QueryTemplate>Required. The QueryTemplate to create.
Implementations§
Source§impl CreateQueryTemplateRequest
impl CreateQueryTemplateRequest
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_query_template_id<T: Into<String>>(self, v: T) -> Self
pub fn set_query_template_id<T: Into<String>>(self, v: T) -> Self
Sets the value of query_template_id.
Sourcepub fn set_query_template<T>(self, v: T) -> Selfwhere
T: Into<QueryTemplate>,
pub fn set_query_template<T>(self, v: T) -> Selfwhere
T: Into<QueryTemplate>,
Sets the value of query_template.
Sourcepub fn set_or_clear_query_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryTemplate>,
pub fn set_or_clear_query_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryTemplate>,
Sets or clears the value of query_template.
Trait Implementations§
Source§impl Clone for CreateQueryTemplateRequest
impl Clone for CreateQueryTemplateRequest
Source§fn clone(&self) -> CreateQueryTemplateRequest
fn clone(&self) -> CreateQueryTemplateRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateQueryTemplateRequest
impl Debug for CreateQueryTemplateRequest
Source§impl Default for CreateQueryTemplateRequest
impl Default for CreateQueryTemplateRequest
Source§fn default() -> CreateQueryTemplateRequest
fn default() -> CreateQueryTemplateRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateQueryTemplateRequest
impl Message for CreateQueryTemplateRequest
impl StructuralPartialEq for CreateQueryTemplateRequest
Auto Trait Implementations§
impl Freeze for CreateQueryTemplateRequest
impl RefUnwindSafe for CreateQueryTemplateRequest
impl Send for CreateQueryTemplateRequest
impl Sync for CreateQueryTemplateRequest
impl Unpin for CreateQueryTemplateRequest
impl UnwindSafe for CreateQueryTemplateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more