#[non_exhaustive]pub struct UpdateViewRequest {
pub name: String,
pub view: Option<LogView>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The parameters to UpdateView.
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.name: StringRequired. The full resource name of the view to update
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"For example:
"projects/my-project/locations/global/buckets/my-bucket/views/my-view"
view: Option<LogView>Required. The updated view.
update_mask: Option<FieldMask>Optional. Field mask that specifies the fields in view that need
an update. A field will be overwritten if, and only if, it is
in the update mask. name and output only fields cannot be updated.
For a detailed FieldMask definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
For example: updateMask=filter
Implementations§
Source§impl UpdateViewRequest
impl UpdateViewRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_view<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_view<T>(self, v: Option<T>) -> Self
Sets or clears the value of view.
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.
Trait Implementations§
Source§impl Clone for UpdateViewRequest
impl Clone for UpdateViewRequest
Source§fn clone(&self) -> UpdateViewRequest
fn clone(&self) -> UpdateViewRequest
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 UpdateViewRequest
impl Debug for UpdateViewRequest
Source§impl Default for UpdateViewRequest
impl Default for UpdateViewRequest
Source§fn default() -> UpdateViewRequest
fn default() -> UpdateViewRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateViewRequest
impl Message for UpdateViewRequest
Source§impl PartialEq for UpdateViewRequest
impl PartialEq for UpdateViewRequest
impl StructuralPartialEq for UpdateViewRequest
Auto Trait Implementations§
impl Freeze for UpdateViewRequest
impl RefUnwindSafe for UpdateViewRequest
impl Send for UpdateViewRequest
impl Sync for UpdateViewRequest
impl Unpin for UpdateViewRequest
impl UnwindSafe for UpdateViewRequest
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