#[non_exhaustive]pub struct CreateAnywhereCacheMetadata {
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 CreateAnywhereCache operations.
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. A cache-level config that is applied to all new cache entries on admission. Default ttl value (24hrs) is applied if not specified in the create request.
admission_policy: Option<String>Anywhere Cache entry Admission Policy in kebab-case (e.g., “admit-on-first-miss”). Default admission policy (admit-on-first-miss) is applied if not specified in the create request.
Implementations§
Source§impl CreateAnywhereCacheMetadata
impl CreateAnywhereCacheMetadata
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.
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.
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.
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.
Sourcepub fn set_or_clear_zone<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_zone<T>(self, v: Option<T>) -> Self
Sets or clears the value of zone.
Sourcepub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ttl<T>(self, v: Option<T>) -> Self
Sets or clears the value of ttl.
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.
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.
Trait Implementations§
Source§impl Clone for CreateAnywhereCacheMetadata
impl Clone for CreateAnywhereCacheMetadata
Source§fn clone(&self) -> CreateAnywhereCacheMetadata
fn clone(&self) -> CreateAnywhereCacheMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateAnywhereCacheMetadata
impl Debug for CreateAnywhereCacheMetadata
Source§impl Default for CreateAnywhereCacheMetadata
impl Default for CreateAnywhereCacheMetadata
Source§fn default() -> CreateAnywhereCacheMetadata
fn default() -> CreateAnywhereCacheMetadata
impl StructuralPartialEq for CreateAnywhereCacheMetadata
Auto Trait Implementations§
impl Freeze for CreateAnywhereCacheMetadata
impl RefUnwindSafe for CreateAnywhereCacheMetadata
impl Send for CreateAnywhereCacheMetadata
impl Sync for CreateAnywhereCacheMetadata
impl Unpin for CreateAnywhereCacheMetadata
impl UnwindSafe for CreateAnywhereCacheMetadata
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