#[non_exhaustive]pub struct CreateRapidCacheMetadata {
pub common_metadata: Option<CommonLongRunningOperationMetadata>,
pub rapid_cache_id: Option<String>,
pub zone: Option<String>,
pub ttl: Option<Duration>,
pub admission_policy: Option<String>,
pub ingest_on_write: Option<bool>,
pub cache_type: Option<String>,
/* private fields */
}Expand description
Message returned in the metadata field of the Operation resource for CreateRapidCache 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.
rapid_cache_id: Option<String>Rapid Cache ID.
zone: Option<String>The zone in which the cache instance is running. For example, us-central1-a.
ttl: Option<Duration>Rapid 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.
ingest_on_write: Option<bool>Optional. Specifies whether objects are ingested into the cache upon write. Defaults to false.
cache_type: Option<String>Optional. The type of cache. Either rapid cache or rapid cache ultra.
Implementations§
Source§impl CreateRapidCacheMetadata
impl CreateRapidCacheMetadata
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 = CreateRapidCacheMetadata::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 = CreateRapidCacheMetadata::new().set_or_clear_common_metadata(Some(CommonLongRunningOperationMetadata::default()/* use setters */));
let x = CreateRapidCacheMetadata::new().set_or_clear_common_metadata(None::<CommonLongRunningOperationMetadata>);Sourcepub fn set_rapid_cache_id<T>(self, v: T) -> Self
pub fn set_rapid_cache_id<T>(self, v: T) -> Self
Sets the value of rapid_cache_id.
§Example
let x = CreateRapidCacheMetadata::new().set_rapid_cache_id("example");Sourcepub fn set_or_clear_rapid_cache_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rapid_cache_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of rapid_cache_id.
§Example
let x = CreateRapidCacheMetadata::new().set_or_clear_rapid_cache_id(Some("example"));
let x = CreateRapidCacheMetadata::new().set_or_clear_rapid_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 = CreateRapidCacheMetadata::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 = CreateRapidCacheMetadata::new().set_or_clear_admission_policy(Some("example"));
let x = CreateRapidCacheMetadata::new().set_or_clear_admission_policy(None::<String>);Sourcepub fn set_ingest_on_write<T>(self, v: T) -> Self
pub fn set_ingest_on_write<T>(self, v: T) -> Self
Sets the value of ingest_on_write.
§Example
let x = CreateRapidCacheMetadata::new().set_ingest_on_write(true);Sourcepub fn set_or_clear_ingest_on_write<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ingest_on_write<T>(self, v: Option<T>) -> Self
Sets or clears the value of ingest_on_write.
§Example
let x = CreateRapidCacheMetadata::new().set_or_clear_ingest_on_write(Some(false));
let x = CreateRapidCacheMetadata::new().set_or_clear_ingest_on_write(None::<bool>);Sourcepub fn set_cache_type<T>(self, v: T) -> Self
pub fn set_cache_type<T>(self, v: T) -> Self
Sets the value of cache_type.
§Example
let x = CreateRapidCacheMetadata::new().set_cache_type("example");Sourcepub fn set_or_clear_cache_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cache_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of cache_type.
§Example
let x = CreateRapidCacheMetadata::new().set_or_clear_cache_type(Some("example"));
let x = CreateRapidCacheMetadata::new().set_or_clear_cache_type(None::<String>);Trait Implementations§
Source§impl Clone for CreateRapidCacheMetadata
impl Clone for CreateRapidCacheMetadata
Source§fn clone(&self) -> CreateRapidCacheMetadata
fn clone(&self) -> CreateRapidCacheMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateRapidCacheMetadata
impl Debug for CreateRapidCacheMetadata
Source§impl Default for CreateRapidCacheMetadata
impl Default for CreateRapidCacheMetadata
Source§fn default() -> CreateRapidCacheMetadata
fn default() -> CreateRapidCacheMetadata
Source§impl Message for CreateRapidCacheMetadata
impl Message for CreateRapidCacheMetadata
Source§impl PartialEq for CreateRapidCacheMetadata
impl PartialEq for CreateRapidCacheMetadata
impl StructuralPartialEq for CreateRapidCacheMetadata
Auto Trait Implementations§
impl Freeze for CreateRapidCacheMetadata
impl RefUnwindSafe for CreateRapidCacheMetadata
impl Send for CreateRapidCacheMetadata
impl Sync for CreateRapidCacheMetadata
impl Unpin for CreateRapidCacheMetadata
impl UnsafeUnpin for CreateRapidCacheMetadata
impl UnwindSafe for CreateRapidCacheMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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