#[non_exhaustive]pub struct Template {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub filter_config: Option<FilterConfig>,
pub template_metadata: Option<TemplateMetadata>,
/* private fields */
}Expand description
Message describing Template resource
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.name: StringIdentifier. name of resource
create_time: Option<Timestamp>Output only. [Output only] Create time stamp
update_time: Option<Timestamp>Output only. [Output only] Update time stamp
labels: HashMap<String, String>Optional. Labels as key value pairs
filter_config: Option<FilterConfig>Required. filter configuration for this template
template_metadata: Option<TemplateMetadata>Optional. metadata for this template
Implementations§
Source§impl Template
impl Template
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_filter_config<T>(self, v: T) -> Selfwhere
T: Into<FilterConfig>,
pub fn set_filter_config<T>(self, v: T) -> Selfwhere
T: Into<FilterConfig>,
Sets the value of filter_config.
Sourcepub fn set_or_clear_filter_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<FilterConfig>,
pub fn set_or_clear_filter_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<FilterConfig>,
Sets or clears the value of filter_config.
Sourcepub fn set_template_metadata<T>(self, v: T) -> Selfwhere
T: Into<TemplateMetadata>,
pub fn set_template_metadata<T>(self, v: T) -> Selfwhere
T: Into<TemplateMetadata>,
Sets the value of template_metadata.
Sourcepub fn set_or_clear_template_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<TemplateMetadata>,
pub fn set_or_clear_template_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<TemplateMetadata>,
Sets or clears the value of template_metadata.
Trait Implementations§
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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