Struct google_pubsub1::PushConfig
source · pub struct PushConfig {
pub attributes: Option<HashMap<String, String>>,
pub push_endpoint: Option<String>,
}Expand description
Configuration for a push delivery endpoint.
This type is not used in any activity, and only used as part of another schema.
Fields§
§attributes: Option<HashMap<String, String>>Endpoint configuration attributes.
Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery.
The currently supported attribute is x-goog-version, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
The endpoint version is based on the version of the Pub/Sub API.
If not present during the CreateSubscription call, it will default to
the version of the API used to make such call. If not present during a
ModifyPushConfig call, its value will not be changed. GetSubscription
calls will always return a valid version, even if the subscription was
created without this attribute.
The possible values for this attribute are:
v1beta1: uses the push format defined in the v1beta1 Pub/Sub API.v1orv1beta2: uses the push format defined in the v1 Pub/Sub API.
push_endpoint: Option<String>A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use “https://example.com/push”.
Trait Implementations§
source§impl Clone for PushConfig
impl Clone for PushConfig
source§fn clone(&self) -> PushConfig
fn clone(&self) -> PushConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PushConfig
impl Debug for PushConfig
source§impl Default for PushConfig
impl Default for PushConfig
source§fn default() -> PushConfig
fn default() -> PushConfig
source§impl<'de> Deserialize<'de> for PushConfig
impl<'de> Deserialize<'de> for PushConfig
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>,
source§impl Serialize for PushConfig
impl Serialize for PushConfig
impl Part for PushConfig
Auto Trait Implementations§
impl Freeze for PushConfig
impl RefUnwindSafe for PushConfig
impl Send for PushConfig
impl Sync for PushConfig
impl Unpin for PushConfig
impl UnwindSafe for PushConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more