Struct google_eventarc1::api::Pubsub
source · pub struct Pubsub {
pub subscription: Option<String>,
pub topic: Option<String>,
}
Expand description
Represents a Pub/Sub transport.
This type is not used in any activity, and only used as part of another schema.
Fields§
§subscription: Option<String>
Output only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}
.
topic: Option<String>
Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}
. You can set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished
. The topic you provide here is not deleted by Eventarc at trigger deletion.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pubsub
impl<'de> Deserialize<'de> for Pubsub
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 Part for Pubsub
Auto Trait Implementations§
impl RefUnwindSafe for Pubsub
impl Send for Pubsub
impl Sync for Pubsub
impl Unpin for Pubsub
impl UnwindSafe for Pubsub
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