pub struct NotificationRule {
pub id: String,
pub events: Vec<EventType>,
pub destination: Destination,
pub filter_prefix: Option<String>,
pub filter_suffix: Option<String>,
}Expand description
One notification rule. Multiple rules can be registered per bucket; each
rule independently chooses whether to fire on a given event by checking
the event type against events and the object key against the
filter_prefix / filter_suffix pair (both optional; both apply
simultaneously when set).
Fields§
§id: StringOperator-supplied id (the AWS S3 PUT API requires it; if the client
omits one, callers can synthesise format!("rule-{i}")).
events: Vec<EventType>Event types this rule listens for. Empty means “never fire” — the rule won’t match anything.
destination: DestinationWhere to send the event when the rule matches.
filter_prefix: Option<String>AWS S3 Filter.Key.Rules[Name=prefix].Value. When None, no prefix
filter applies. Empty string is treated as “match anything”, same as
None.
filter_suffix: Option<String>AWS S3 Filter.Key.Rules[Name=suffix].Value. Same semantics as
filter_prefix.
Trait Implementations§
Source§impl Clone for NotificationRule
impl Clone for NotificationRule
Source§fn clone(&self) -> NotificationRule
fn clone(&self) -> NotificationRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NotificationRule
impl Debug for NotificationRule
Source§impl<'de> Deserialize<'de> for NotificationRule
impl<'de> Deserialize<'de> for NotificationRule
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>,
Source§impl PartialEq for NotificationRule
impl PartialEq for NotificationRule
Source§fn eq(&self, other: &NotificationRule) -> bool
fn eq(&self, other: &NotificationRule) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationRule
impl Serialize for NotificationRule
impl Eq for NotificationRule
impl StructuralPartialEq for NotificationRule
Auto Trait Implementations§
impl Freeze for NotificationRule
impl RefUnwindSafe for NotificationRule
impl Send for NotificationRule
impl Sync for NotificationRule
impl Unpin for NotificationRule
impl UnsafeUnpin for NotificationRule
impl UnwindSafe for NotificationRule
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.