#[non_exhaustive]pub struct UpdateSubscriptionRequest {
pub subscription: Option<Subscription>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request for the UpdateSubscription method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subscription: Option<Subscription>Required. The updated subscription object.
update_mask: Option<FieldMask>Required. Indicates which fields in the provided subscription to update. Must be specified and non-empty.
Implementations§
Source§impl UpdateSubscriptionRequest
impl UpdateSubscriptionRequest
pub fn new() -> Self
Sourcepub fn set_subscription<T>(self, v: T) -> Selfwhere
T: Into<Subscription>,
pub fn set_subscription<T>(self, v: T) -> Selfwhere
T: Into<Subscription>,
Sets the value of subscription.
§Example
ⓘ
use google_cloud_pubsub::model::Subscription;
let x = UpdateSubscriptionRequest::new().set_subscription(Subscription::default()/* use setters */);Sourcepub fn set_or_clear_subscription<T>(self, v: Option<T>) -> Selfwhere
T: Into<Subscription>,
pub fn set_or_clear_subscription<T>(self, v: Option<T>) -> Selfwhere
T: Into<Subscription>,
Sets or clears the value of subscription.
§Example
ⓘ
use google_cloud_pubsub::model::Subscription;
let x = UpdateSubscriptionRequest::new().set_or_clear_subscription(Some(Subscription::default()/* use setters */));
let x = UpdateSubscriptionRequest::new().set_or_clear_subscription(None::<Subscription>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateSubscriptionRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateSubscriptionRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateSubscriptionRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateSubscriptionRequest
impl Clone for UpdateSubscriptionRequest
Source§fn clone(&self) -> UpdateSubscriptionRequest
fn clone(&self) -> UpdateSubscriptionRequest
Returns a duplicate 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 UpdateSubscriptionRequest
impl Debug for UpdateSubscriptionRequest
Source§impl Default for UpdateSubscriptionRequest
impl Default for UpdateSubscriptionRequest
Source§fn default() -> UpdateSubscriptionRequest
fn default() -> UpdateSubscriptionRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateSubscriptionRequest
impl Message for UpdateSubscriptionRequest
impl StructuralPartialEq for UpdateSubscriptionRequest
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionRequest
impl RefUnwindSafe for UpdateSubscriptionRequest
impl Send for UpdateSubscriptionRequest
impl Sync for UpdateSubscriptionRequest
impl Unpin for UpdateSubscriptionRequest
impl UnwindSafe for UpdateSubscriptionRequest
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
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>
Wrap the input message
T in a tonic::Request