#[non_exhaustive]pub struct FilteringAttribute {
pub attribute: String,
pub description: String,
pub required: bool,
pub path_pattern_supported: bool,
/* private fields */
}Expand description
A representation of the FilteringAttribute resource. Filtering attributes are per event type.
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.attribute: StringOutput only. Attribute used for filtering the event type.
description: StringOutput only. Description of the purpose of the attribute.
required: boolOutput only. If true, the triggers for this provider should always specify a filter on these attributes. Trigger creation will fail otherwise.
path_pattern_supported: boolOutput only. If true, the attribute accepts matching expressions in the Eventarc PathPattern format.
Implementations§
Source§impl FilteringAttribute
impl FilteringAttribute
pub fn new() -> Self
Sourcepub fn set_attribute<T: Into<String>>(self, v: T) -> Self
pub fn set_attribute<T: Into<String>>(self, v: T) -> 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.
§Example
ⓘ
let x = FilteringAttribute::new().set_description("example");Sourcepub fn set_required<T: Into<bool>>(self, v: T) -> Self
pub fn set_required<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_path_pattern_supported<T: Into<bool>>(self, v: T) -> Self
pub fn set_path_pattern_supported<T: Into<bool>>(self, v: T) -> Self
Sets the value of path_pattern_supported.
§Example
ⓘ
let x = FilteringAttribute::new().set_path_pattern_supported(true);Trait Implementations§
Source§impl Clone for FilteringAttribute
impl Clone for FilteringAttribute
Source§fn clone(&self) -> FilteringAttribute
fn clone(&self) -> FilteringAttribute
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 FilteringAttribute
impl Debug for FilteringAttribute
Source§impl Default for FilteringAttribute
impl Default for FilteringAttribute
Source§fn default() -> FilteringAttribute
fn default() -> FilteringAttribute
Returns the “default value” for a type. Read more
Source§impl Message for FilteringAttribute
impl Message for FilteringAttribute
Source§impl PartialEq for FilteringAttribute
impl PartialEq for FilteringAttribute
impl StructuralPartialEq for FilteringAttribute
Auto Trait Implementations§
impl Freeze for FilteringAttribute
impl RefUnwindSafe for FilteringAttribute
impl Send for FilteringAttribute
impl Sync for FilteringAttribute
impl Unpin for FilteringAttribute
impl UnwindSafe for FilteringAttribute
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