Struct google_eventarc1::api::EventFilter
source · pub struct EventFilter {
pub attribute: Option<String>,
pub operator: Option<String>,
pub value: Option<String>,
}
Expand description
Filters events based on exact matches on the CloudEvents attributes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§attribute: Option<String>
Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can retrieve a specific provider’s supported event types. All triggers MUST provide a filter for the ‘type’ attribute.
operator: Option<String>
Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The allowed values are path_pattern
and match-path-pattern
. path_pattern
is only allowed for GCFv1 triggers.
value: Option<String>
Required. The value for the attribute.
Trait Implementations§
source§impl Clone for EventFilter
impl Clone for EventFilter
source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
Returns a copy 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 EventFilter
impl Debug for EventFilter
source§impl Default for EventFilter
impl Default for EventFilter
source§fn default() -> EventFilter
fn default() -> EventFilter
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EventFilter
impl<'de> Deserialize<'de> for EventFilter
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for EventFilter
impl Serialize for EventFilter
impl Part for EventFilter
Auto Trait Implementations§
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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