#[non_exhaustive]pub struct UpdateEntryRequest {
pub entry: Option<Entry>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
pub delete_missing_aspects: bool,
pub aspect_keys: Vec<String>,
/* private fields */
}Expand description
Update Entry request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entry: Option<Entry>Required. Entry resource.
update_mask: Option<FieldMask>Optional. Mask of fields to update. To update Aspects, the update_mask must contain the value “aspects”.
If the update_mask is empty, the service will update all modifiable fields present in the request.
allow_missing: boolOptional. If set to true and the entry doesn’t exist, the service will create it.
delete_missing_aspects: boolOptional. If set to true and the aspect_keys specify aspect ranges, the service deletes any existing aspects from that range that weren’t provided in the request.
aspect_keys: Vec<String>Optional. The map keys of the Aspects which the service should modify. It supports the following syntaxes:
<aspect_type_reference>- matches an aspect of the given type and empty path.<aspect_type_reference>@path- matches an aspect of the given type and specified path. For example, to attach an aspect to a field that is specified by theschemaaspect, the path should have the formatSchema.<field_name>.<aspect_type_reference>@*- matches aspects of the given type for all paths.*@path- matches aspects of all types on the given path.
The service will not remove existing aspects matching the syntax unless
delete_missing_aspects is set to true.
If this field is left empty, the service treats it as specifying exactly those Aspects present in the request.
Implementations§
Source§impl UpdateEntryRequest
impl UpdateEntryRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_entry<T>(self, v: Option<T>) -> Self
Sets or clears the value of entry.
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_delete_missing_aspects<T: Into<bool>>(self, v: T) -> Self
pub fn set_delete_missing_aspects<T: Into<bool>>(self, v: T) -> Self
Sets the value of delete_missing_aspects.
Sourcepub fn set_aspect_keys<T, V>(self, v: T) -> Self
pub fn set_aspect_keys<T, V>(self, v: T) -> Self
Sets the value of aspect_keys.
Trait Implementations§
Source§impl Clone for UpdateEntryRequest
impl Clone for UpdateEntryRequest
Source§fn clone(&self) -> UpdateEntryRequest
fn clone(&self) -> UpdateEntryRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more