Struct google_pubsub1::api::MessageStoragePolicy
source · pub struct MessageStoragePolicy {
pub allowed_persistence_regions: Option<Vec<String>>,
pub enforce_in_transit: Option<bool>,
}
Expand description
A policy constraining the storage of messages published to the topic.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allowed_persistence_regions: Option<Vec<String>>
Optional. A list of IDs of Google Cloud regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed Google Cloud regions (or running outside of Google Cloud altogether) are routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.
enforce_in_transit: Option<bool>
Optional. If true, allowed_persistence_regions
is also used to enforce in-transit guarantees for messages. That is, Pub/Sub will fail Publish operations on this topic and subscribe operations on any subscription attached to this topic in any region that is not in allowed_persistence_regions
.
Trait Implementations§
source§impl Clone for MessageStoragePolicy
impl Clone for MessageStoragePolicy
source§fn clone(&self) -> MessageStoragePolicy
fn clone(&self) -> MessageStoragePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more