#[non_exhaustive]pub struct UpdateAnywhereCacheRequest {
pub anywhere_cache: Option<AnywhereCache>,
pub update_mask: Option<FieldMask>,
pub request_id: String,
/* private fields */
}Expand description
Request message for UpdateAnywhereCache.
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.anywhere_cache: Option<AnywhereCache>Required. The Anywhere Cache instance to be updated.
update_mask: Option<FieldMask>Required. List of fields to be updated. Mutable fields of AnywhereCache
include ttl and admission_policy.
To specify ALL fields, specify a single field with the value *. Note: We
recommend against doing this. If a new field is introduced at a later time,
an older client updating with the * may accidentally reset the new
field’s value.
Not specifying any fields is an error.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a request_id is provided.
Implementations§
Source§impl UpdateAnywhereCacheRequest
impl UpdateAnywhereCacheRequest
pub fn new() -> Self
Sourcepub fn set_anywhere_cache<T>(self, v: T) -> Selfwhere
T: Into<AnywhereCache>,
pub fn set_anywhere_cache<T>(self, v: T) -> Selfwhere
T: Into<AnywhereCache>,
Sets the value of anywhere_cache.
Sourcepub fn set_or_clear_anywhere_cache<T>(self, v: Option<T>) -> Selfwhere
T: Into<AnywhereCache>,
pub fn set_or_clear_anywhere_cache<T>(self, v: Option<T>) -> Selfwhere
T: Into<AnywhereCache>,
Sets or clears the value of anywhere_cache.
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_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for UpdateAnywhereCacheRequest
impl Clone for UpdateAnywhereCacheRequest
Source§fn clone(&self) -> UpdateAnywhereCacheRequest
fn clone(&self) -> UpdateAnywhereCacheRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateAnywhereCacheRequest
impl Debug for UpdateAnywhereCacheRequest
Source§impl Default for UpdateAnywhereCacheRequest
impl Default for UpdateAnywhereCacheRequest
Source§fn default() -> UpdateAnywhereCacheRequest
fn default() -> UpdateAnywhereCacheRequest
Source§impl Message for UpdateAnywhereCacheRequest
impl Message for UpdateAnywhereCacheRequest
impl StructuralPartialEq for UpdateAnywhereCacheRequest
Auto Trait Implementations§
impl Freeze for UpdateAnywhereCacheRequest
impl RefUnwindSafe for UpdateAnywhereCacheRequest
impl Send for UpdateAnywhereCacheRequest
impl Sync for UpdateAnywhereCacheRequest
impl Unpin for UpdateAnywhereCacheRequest
impl UnwindSafe for UpdateAnywhereCacheRequest
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
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>
T in a tonic::Request