#[non_exhaustive]pub struct UpdateMessageBusRequest {
pub message_bus: Option<MessageBus>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the UpdateMessageBus 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.message_bus: Option<MessageBus>Required. The MessageBus to be updated.
update_mask: Option<FieldMask>Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of “*”.
allow_missing: boolOptional. If set to true, and the MessageBus is not found, a new MessageBus
will be created. In this situation, update_mask is ignored.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl UpdateMessageBusRequest
impl UpdateMessageBusRequest
pub fn new() -> Self
Sourcepub fn set_message_bus<T>(self, v: T) -> Selfwhere
T: Into<MessageBus>,
pub fn set_message_bus<T>(self, v: T) -> Selfwhere
T: Into<MessageBus>,
Sets the value of message_bus.
Sourcepub fn set_or_clear_message_bus<T>(self, v: Option<T>) -> Selfwhere
T: Into<MessageBus>,
pub fn set_or_clear_message_bus<T>(self, v: Option<T>) -> Selfwhere
T: Into<MessageBus>,
Sets or clears the value of message_bus.
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_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for UpdateMessageBusRequest
impl Clone for UpdateMessageBusRequest
Source§fn clone(&self) -> UpdateMessageBusRequest
fn clone(&self) -> UpdateMessageBusRequest
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 UpdateMessageBusRequest
impl Debug for UpdateMessageBusRequest
Source§impl Default for UpdateMessageBusRequest
impl Default for UpdateMessageBusRequest
Source§fn default() -> UpdateMessageBusRequest
fn default() -> UpdateMessageBusRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateMessageBusRequest
impl Message for UpdateMessageBusRequest
Source§impl PartialEq for UpdateMessageBusRequest
impl PartialEq for UpdateMessageBusRequest
impl StructuralPartialEq for UpdateMessageBusRequest
Auto Trait Implementations§
impl Freeze for UpdateMessageBusRequest
impl RefUnwindSafe for UpdateMessageBusRequest
impl Send for UpdateMessageBusRequest
impl Sync for UpdateMessageBusRequest
impl Unpin for UpdateMessageBusRequest
impl UnwindSafe for UpdateMessageBusRequest
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