pub struct NotificationCreationConfig {
pub topic: String,
pub event_types: Option<Vec<EventType>>,
pub custom_attributes: HashMap<String, String>,
pub object_name_prefix: Option<String>,
pub payload_format: PayloadFormat,
}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: HashMap<String, String>An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
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.
Trait Implementations§
source§impl Clone for NotificationCreationConfig
impl Clone for NotificationCreationConfig
source§fn clone(&self) -> NotificationCreationConfig
fn clone(&self) -> NotificationCreationConfig
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 NotificationCreationConfig
impl Debug for NotificationCreationConfig
source§impl Default for NotificationCreationConfig
impl Default for NotificationCreationConfig
source§fn default() -> NotificationCreationConfig
fn default() -> NotificationCreationConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NotificationCreationConfig
impl<'de> Deserialize<'de> for NotificationCreationConfig
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<NotificationCreationConfig> for NotificationCreationConfig
impl PartialEq<NotificationCreationConfig> for NotificationCreationConfig
source§fn eq(&self, other: &NotificationCreationConfig) -> bool
fn eq(&self, other: &NotificationCreationConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for NotificationCreationConfig
impl StructuralEq for NotificationCreationConfig
impl StructuralPartialEq for NotificationCreationConfig
Auto Trait Implementations§
impl RefUnwindSafe for NotificationCreationConfig
impl Send for NotificationCreationConfig
impl Sync for NotificationCreationConfig
impl Unpin for NotificationCreationConfig
impl UnwindSafe for NotificationCreationConfig
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.