pub struct GcsNotificationConfig<'a> {
pub key: String,
pub queue: &'a ResourceRef,
pub prefix: Option<&'a str>,
pub suffix_attributes: Vec<(String, String)>,
}Expand description
One GCS notification config: every rule of a Storage with the same queue and prefix. GCS filters by prefix only, so one config per rule would publish each object under a shared prefix once per rule. The consumer checks the suffixes instead.
Fields§
§key: StringStable identity of the group (queue and prefix), independent of rule positions and suffixes: a changed suffix set replaces only this group’s config.
queue: &'a ResourceRefQueue the config publishes to.
prefix: Option<&'a str>object_name_prefix, if any.
suffix_attributes: Vec<(String, String)>Suffix attributes; empty when a rule of the group has no suffix and so matches every object under the prefix (rules can’t overlap, so it is then the only rule).
Trait Implementations§
Source§impl<'a> Clone for GcsNotificationConfig<'a>
impl<'a> Clone for GcsNotificationConfig<'a>
Source§impl<'a> Debug for GcsNotificationConfig<'a>
impl<'a> Debug for GcsNotificationConfig<'a>
impl<'a> Eq for GcsNotificationConfig<'a>
Source§impl<'a> PartialEq for GcsNotificationConfig<'a>
impl<'a> PartialEq for GcsNotificationConfig<'a>
impl<'a> StructuralPartialEq for GcsNotificationConfig<'a>
Auto Trait Implementations§
impl<'a> Forget for GcsNotificationConfig<'a>
impl<'a> Freeze for GcsNotificationConfig<'a>
impl<'a> RefUnwindSafe for GcsNotificationConfig<'a>
impl<'a> Send for GcsNotificationConfig<'a>
impl<'a> Sync for GcsNotificationConfig<'a>
impl<'a> Unpin for GcsNotificationConfig<'a>
impl<'a> UnsafeUnpin for GcsNotificationConfig<'a>
impl<'a> UnwindSafe for GcsNotificationConfig<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.