pub struct CreateSubscription(/* private fields */);Expand description
The request builder for SubscriptionAdmin::create_subscription calls.
§Example
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> CreateSubscription {
// ... details omitted ...
}Implementations§
Source§impl CreateSubscription
impl CreateSubscription
Sourcepub fn with_request<V: Into<Subscription>>(self, v: V) -> Self
pub fn with_request<V: Into<Subscription>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<Subscription>
pub async fn send(self) -> Result<Subscription>
Sends the request.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of name.
This is a required field for requests.
Sourcepub fn set_topic<T: Into<String>>(self, v: T) -> Self
pub fn set_topic<T: Into<String>>(self, v: T) -> Self
Sets the value of topic.
This is a required field for requests.
Sourcepub fn set_push_config<T>(self, v: T) -> Selfwhere
T: Into<PushConfig>,
pub fn set_push_config<T>(self, v: T) -> Selfwhere
T: Into<PushConfig>,
Sets the value of push_config.
Sourcepub fn set_or_clear_push_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PushConfig>,
pub fn set_or_clear_push_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PushConfig>,
Sets or clears the value of push_config.
Sourcepub fn set_bigquery_config<T>(self, v: T) -> Selfwhere
T: Into<BigQueryConfig>,
pub fn set_bigquery_config<T>(self, v: T) -> Selfwhere
T: Into<BigQueryConfig>,
Sets the value of bigquery_config.
Sourcepub fn set_or_clear_bigquery_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryConfig>,
pub fn set_or_clear_bigquery_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryConfig>,
Sets or clears the value of bigquery_config.
Sourcepub fn set_cloud_storage_config<T>(self, v: T) -> Selfwhere
T: Into<CloudStorageConfig>,
pub fn set_cloud_storage_config<T>(self, v: T) -> Selfwhere
T: Into<CloudStorageConfig>,
Sets the value of cloud_storage_config.
Sourcepub fn set_or_clear_cloud_storage_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudStorageConfig>,
pub fn set_or_clear_cloud_storage_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudStorageConfig>,
Sets or clears the value of cloud_storage_config.
Sourcepub fn set_ack_deadline_seconds<T: Into<i32>>(self, v: T) -> Self
pub fn set_ack_deadline_seconds<T: Into<i32>>(self, v: T) -> Self
Sets the value of ack_deadline_seconds.
Sourcepub fn set_retain_acked_messages<T: Into<bool>>(self, v: T) -> Self
pub fn set_retain_acked_messages<T: Into<bool>>(self, v: T) -> Self
Sets the value of retain_acked_messages.
Sourcepub fn set_message_retention_duration<T>(self, v: T) -> Self
pub fn set_message_retention_duration<T>(self, v: T) -> Self
Sets the value of message_retention_duration.
Sourcepub fn set_or_clear_message_retention_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_message_retention_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of message_retention_duration.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_enable_message_ordering<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_message_ordering<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_message_ordering.
Sourcepub fn set_expiration_policy<T>(self, v: T) -> Selfwhere
T: Into<ExpirationPolicy>,
pub fn set_expiration_policy<T>(self, v: T) -> Selfwhere
T: Into<ExpirationPolicy>,
Sets the value of expiration_policy.
Sourcepub fn set_or_clear_expiration_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExpirationPolicy>,
pub fn set_or_clear_expiration_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExpirationPolicy>,
Sets or clears the value of expiration_policy.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_dead_letter_policy<T>(self, v: T) -> Selfwhere
T: Into<DeadLetterPolicy>,
pub fn set_dead_letter_policy<T>(self, v: T) -> Selfwhere
T: Into<DeadLetterPolicy>,
Sets the value of dead_letter_policy.
Sourcepub fn set_or_clear_dead_letter_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeadLetterPolicy>,
pub fn set_or_clear_dead_letter_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeadLetterPolicy>,
Sets or clears the value of dead_letter_policy.
Sourcepub fn set_retry_policy<T>(self, v: T) -> Selfwhere
T: Into<RetryPolicy>,
pub fn set_retry_policy<T>(self, v: T) -> Selfwhere
T: Into<RetryPolicy>,
Sets the value of retry_policy.
Sourcepub fn set_or_clear_retry_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<RetryPolicy>,
pub fn set_or_clear_retry_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<RetryPolicy>,
Sets or clears the value of retry_policy.
Sourcepub fn set_detached<T: Into<bool>>(self, v: T) -> Self
pub fn set_detached<T: Into<bool>>(self, v: T) -> Self
Sets the value of detached.
Sourcepub fn set_enable_exactly_once_delivery<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_exactly_once_delivery<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_exactly_once_delivery.
Sourcepub fn set_topic_message_retention_duration<T>(self, v: T) -> Self
pub fn set_topic_message_retention_duration<T>(self, v: T) -> Self
Sets the value of topic_message_retention_duration.
Sourcepub fn set_or_clear_topic_message_retention_duration<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_topic_message_retention_duration<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of topic_message_retention_duration.
Sourcepub fn set_analytics_hub_subscription_info<T>(self, v: T) -> Selfwhere
T: Into<AnalyticsHubSubscriptionInfo>,
pub fn set_analytics_hub_subscription_info<T>(self, v: T) -> Selfwhere
T: Into<AnalyticsHubSubscriptionInfo>,
Sets the value of analytics_hub_subscription_info.
Sourcepub fn set_or_clear_analytics_hub_subscription_info<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AnalyticsHubSubscriptionInfo>,
pub fn set_or_clear_analytics_hub_subscription_info<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AnalyticsHubSubscriptionInfo>,
Sets or clears the value of analytics_hub_subscription_info.
Sourcepub fn set_message_transforms<T, V>(self, v: T) -> Self
pub fn set_message_transforms<T, V>(self, v: T) -> Self
Sets the value of message_transforms.
Sets the value of tags.
Trait Implementations§
Source§impl Clone for CreateSubscription
impl Clone for CreateSubscription
Source§fn clone(&self) -> CreateSubscription
fn clone(&self) -> CreateSubscription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateSubscription
impl !RefUnwindSafe for CreateSubscription
impl Send for CreateSubscription
impl Sync for CreateSubscription
impl Unpin for CreateSubscription
impl !UnwindSafe for CreateSubscription
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.