#[non_exhaustive]pub struct UpdateConsumerGroupRequest {
pub update_mask: Option<FieldMask>,
pub consumer_group: Option<ConsumerGroup>,
/* private fields */
}Expand description
Request for UpdateConsumerGroup.
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.update_mask: Option<FieldMask>Required. Field mask is used to specify the fields to be overwritten in the ConsumerGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.
consumer_group: Option<ConsumerGroup>Required. The consumer group to update. Its name field must be populated.
Implementations§
Source§impl UpdateConsumerGroupRequest
impl UpdateConsumerGroupRequest
pub fn new() -> Self
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.
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.
Sourcepub fn set_consumer_group<T>(self, v: T) -> Selfwhere
T: Into<ConsumerGroup>,
pub fn set_consumer_group<T>(self, v: T) -> Selfwhere
T: Into<ConsumerGroup>,
Sets the value of consumer_group.
Sourcepub fn set_or_clear_consumer_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumerGroup>,
pub fn set_or_clear_consumer_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumerGroup>,
Sets or clears the value of consumer_group.
Trait Implementations§
Source§impl Clone for UpdateConsumerGroupRequest
impl Clone for UpdateConsumerGroupRequest
Source§fn clone(&self) -> UpdateConsumerGroupRequest
fn clone(&self) -> UpdateConsumerGroupRequest
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 UpdateConsumerGroupRequest
impl Debug for UpdateConsumerGroupRequest
Source§impl Default for UpdateConsumerGroupRequest
impl Default for UpdateConsumerGroupRequest
Source§fn default() -> UpdateConsumerGroupRequest
fn default() -> UpdateConsumerGroupRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateConsumerGroupRequest
impl Message for UpdateConsumerGroupRequest
impl StructuralPartialEq for UpdateConsumerGroupRequest
Auto Trait Implementations§
impl Freeze for UpdateConsumerGroupRequest
impl RefUnwindSafe for UpdateConsumerGroupRequest
impl Send for UpdateConsumerGroupRequest
impl Sync for UpdateConsumerGroupRequest
impl Unpin for UpdateConsumerGroupRequest
impl UnwindSafe for UpdateConsumerGroupRequest
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