#[non_exhaustive]pub struct UpdateAnywhereCacheMetadata {
pub common_metadata: Option<CommonLongRunningOperationMetadata>,
pub anywhere_cache_id: Option<String>,
pub zone: Option<String>,
pub ttl: Option<Duration>,
pub admission_policy: Option<String>,
/* private fields */
}Expand description
Message returned in the metadata field of the Operation resource for UpdateAnywhereCache operation.
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.common_metadata: Option<CommonLongRunningOperationMetadata>Generic metadata for the long running operation.
anywhere_cache_id: Option<String>Anywhere Cache ID.
zone: Option<String>The zone in which the cache instance is running. For example, us-central1-a.
ttl: Option<Duration>Anywhere Cache entry’s TTL between 1h and 7days. A cache-level config that
is applied to all new cache entries on admission. If ttl is pending
update, this field equals to the new value specified in the Update request.
admission_policy: Option<String>L4 Cache entry Admission Policy in kebab-case (e.g.,
“admit-on-first-miss”). If admission_policy is pending
update, this field equals to the new value specified in the Update request.
Implementations§
Source§impl UpdateAnywhereCacheMetadata
impl UpdateAnywhereCacheMetadata
pub fn new() -> Self
Sourcepub fn set_common_metadata<T>(self, v: T) -> Selfwhere
T: Into<CommonLongRunningOperationMetadata>,
pub fn set_common_metadata<T>(self, v: T) -> Selfwhere
T: Into<CommonLongRunningOperationMetadata>,
Sets the value of common_metadata.
§Example
use google_cloud_storage::model::CommonLongRunningOperationMetadata;
let x = UpdateAnywhereCacheMetadata::new().set_common_metadata(CommonLongRunningOperationMetadata::default()/* use setters */);Sourcepub fn set_or_clear_common_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLongRunningOperationMetadata>,
pub fn set_or_clear_common_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLongRunningOperationMetadata>,
Sets or clears the value of common_metadata.
§Example
use google_cloud_storage::model::CommonLongRunningOperationMetadata;
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_common_metadata(Some(CommonLongRunningOperationMetadata::default()/* use setters */));
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_common_metadata(None::<CommonLongRunningOperationMetadata>);Sourcepub fn set_anywhere_cache_id<T>(self, v: T) -> Self
pub fn set_anywhere_cache_id<T>(self, v: T) -> Self
Sets the value of anywhere_cache_id.
§Example
let x = UpdateAnywhereCacheMetadata::new().set_anywhere_cache_id("example");Sourcepub fn set_or_clear_anywhere_cache_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_anywhere_cache_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of anywhere_cache_id.
§Example
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_anywhere_cache_id(Some("example"));
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_anywhere_cache_id(None::<String>);Sourcepub fn set_or_clear_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_zone<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
Sourcepub fn set_admission_policy<T>(self, v: T) -> Self
pub fn set_admission_policy<T>(self, v: T) -> Self
Sets the value of admission_policy.
§Example
let x = UpdateAnywhereCacheMetadata::new().set_admission_policy("example");Sourcepub fn set_or_clear_admission_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_admission_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of admission_policy.
§Example
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_admission_policy(Some("example"));
let x = UpdateAnywhereCacheMetadata::new().set_or_clear_admission_policy(None::<String>);Trait Implementations§
Source§impl Clone for UpdateAnywhereCacheMetadata
impl Clone for UpdateAnywhereCacheMetadata
Source§fn clone(&self) -> UpdateAnywhereCacheMetadata
fn clone(&self) -> UpdateAnywhereCacheMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateAnywhereCacheMetadata
impl Debug for UpdateAnywhereCacheMetadata
Source§impl Default for UpdateAnywhereCacheMetadata
impl Default for UpdateAnywhereCacheMetadata
Source§fn default() -> UpdateAnywhereCacheMetadata
fn default() -> UpdateAnywhereCacheMetadata
impl StructuralPartialEq for UpdateAnywhereCacheMetadata
Auto Trait Implementations§
impl Freeze for UpdateAnywhereCacheMetadata
impl RefUnwindSafe for UpdateAnywhereCacheMetadata
impl Send for UpdateAnywhereCacheMetadata
impl Sync for UpdateAnywhereCacheMetadata
impl Unpin for UpdateAnywhereCacheMetadata
impl UnwindSafe for UpdateAnywhereCacheMetadata
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