Struct google_cloudscheduler1::api::PubsubTarget
source · pub struct PubsubTarget {
pub attributes: Option<HashMap<String, String>>,
pub data: Option<Vec<u8>>,
pub topic_name: Option<String>,
}
Expand description
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.
This type is not used in any activity, and only used as part of another schema.
Fields§
§attributes: Option<HashMap<String, String>>
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
data: Option<Vec<u8>>
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
topic_name: Option<String>
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub/Sub’s PublishRequest.name, for example projects/PROJECT_ID/topics/TOPIC_ID
. The topic must be in the same project as the Cloud Scheduler job.
Trait Implementations§
source§impl Clone for PubsubTarget
impl Clone for PubsubTarget
source§fn clone(&self) -> PubsubTarget
fn clone(&self) -> PubsubTarget
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 PubsubTarget
impl Debug for PubsubTarget
source§impl Default for PubsubTarget
impl Default for PubsubTarget
source§fn default() -> PubsubTarget
fn default() -> PubsubTarget
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PubsubTarget
impl<'de> Deserialize<'de> for PubsubTarget
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 Serialize for PubsubTarget
impl Serialize for PubsubTarget
impl Part for PubsubTarget
Auto Trait Implementations§
impl RefUnwindSafe for PubsubTarget
impl Send for PubsubTarget
impl Sync for PubsubTarget
impl Unpin for PubsubTarget
impl UnwindSafe for PubsubTarget
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