pub struct StorageNotification {
pub queue: ResourceRef,
pub events: Vec<StorageNotificationEvent>,
pub prefix: Option<String>,
pub suffix: Option<String>,
}Expand description
Delivers matching object events to a queue in the same stack. Rules on one Storage must not overlap: no object key may match two of them. Delivery is at least once, so consumers must tolerate duplicates.
Fields§
§queue: ResourceRefTarget Queue. It must have the same lifecycle as the Storage.
events: Vec<StorageNotificationEvent>Events to deliver. Defaults to object creation; v1 supports only created.
prefix: Option<String>Literal object key prefix, non-empty and at most 512 UTF-8 bytes when set.
suffix: Option<String>Literal object key suffix, non-empty and at most 128 UTF-8 bytes when set.
Implementations§
Source§impl StorageNotification
impl StorageNotification
Sourcepub fn builder() -> StorageNotificationBuilder
pub fn builder() -> StorageNotificationBuilder
Create an instance of StorageNotification using the builder syntax
Source§impl StorageNotification
impl StorageNotification
Sourcepub fn matches_key(&self, key: &str) -> bool
pub fn matches_key(&self, key: &str) -> bool
Match literal prefixes and suffixes; wildcard characters have no special meaning.
Trait Implementations§
Source§impl Clone for StorageNotification
impl Clone for StorageNotification
Source§impl Debug for StorageNotification
impl Debug for StorageNotification
Source§impl<'de> Deserialize<'de> for StorageNotification
impl<'de> Deserialize<'de> for StorageNotification
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
impl Eq for StorageNotification
Source§impl PartialEq for StorageNotification
impl PartialEq for StorageNotification
Source§impl Serialize for StorageNotification
impl Serialize for StorageNotification
impl StructuralPartialEq for StorageNotification
Auto Trait Implementations§
impl Forget for StorageNotification
impl Freeze for StorageNotification
impl RefUnwindSafe for StorageNotification
impl Send for StorageNotification
impl Sync for StorageNotification
impl Unpin for StorageNotification
impl UnsafeUnpin for StorageNotification
impl UnwindSafe for StorageNotification
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.