Struct google_cloud_storage::http::notifications::Notification
source · pub struct Notification {
pub topic: String,
pub event_types: Option<Vec<EventType>>,
pub custom_attributes: Option<HashMap<String, String>>,
pub etag: String,
pub object_name_prefix: Option<String>,
pub payload_format: PayloadFormat,
pub id: String,
}Expand description
A subscription to receive Google PubSub notifications.
Fields§
§topic: StringThe Cloud PubSub topic to which this subscription publishes. Formatted as: ‘//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}’
event_types: Option<Vec<EventType>>If present, only send notifications about listed event types. If empty, sent notifications for all event types.
custom_attributes: Option<HashMap<String, String>>An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
etag: StringHTTP 1.1 [https://tools.ietf.org/html/rfc7232#section-2.3\][Entity tag] for this subscription notification.
object_name_prefix: Option<String>If present, only apply this notification configuration to object names that begin with this prefix.
payload_format: PayloadFormatThe desired content of the Payload.
id: StringThe ID of the notification.
Trait Implementations§
source§impl Clone for Notification
impl Clone for Notification
source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 Notification
impl Debug for Notification
source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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 PartialEq<Notification> for Notification
impl PartialEq<Notification> for Notification
source§fn eq(&self, other: &Notification) -> bool
fn eq(&self, other: &Notification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Notification
impl Serialize for Notification
impl Eq for Notification
impl StructuralEq for Notification
impl StructuralPartialEq for Notification
Auto Trait Implementations§
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.