#[non_exhaustive]pub struct UpdateManagedFolderRequest {
pub managed_folder: Option<ManagedFolder>,
pub update_mask: Option<FieldMask>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub request_id: String,
/* private fields */
}Expand description
Request message for UpdateManagedFolder.
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.managed_folder: Option<ManagedFolder>Required. Properties of the managed folder being updated. Currently, this
RPC only supports updating the rapid_cache_config field in
managed_folder.
update_mask: Option<FieldMask>Optional. Update mask for managed_folder.
Currently, this RPC only supports updating the rapid_cache_config
field in managed_folder. This field also supports update mask for the
subfields in the map of rapid_cache_config. The user can specify the
update mask for rapid_cache_config.policies and
rapid_cache_config.policies.<key>, but patching is not supported for
a field within RapidCachePolicy.policies.<key>, like
rapid_cache_config.policies.[key].ingest_on_write.
if_metageneration_match: Option<i64>Optional. The operation succeeds conditional on the managed folder’s current metageneration matching the value here specified.
if_metageneration_not_match: Option<i64>Optional. The operation succeeds conditional on the managed folder’s current metageneration NOT matching the value here specified.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl UpdateManagedFolderRequest
impl UpdateManagedFolderRequest
Sourcepub fn set_managed_folder<T>(self, v: T) -> Selfwhere
T: Into<ManagedFolder>,
pub fn set_managed_folder<T>(self, v: T) -> Selfwhere
T: Into<ManagedFolder>,
Sets the value of managed_folder.
§Example
use google_cloud_storage::model::ManagedFolder;
let x = UpdateManagedFolderRequest::new().set_managed_folder(ManagedFolder::default()/* use setters */);Sourcepub fn set_or_clear_managed_folder<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedFolder>,
pub fn set_or_clear_managed_folder<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedFolder>,
Sets or clears the value of managed_folder.
§Example
use google_cloud_storage::model::ManagedFolder;
let x = UpdateManagedFolderRequest::new().set_or_clear_managed_folder(Some(ManagedFolder::default()/* use setters */));
let x = UpdateManagedFolderRequest::new().set_or_clear_managed_folder(None::<ManagedFolder>);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.
§Example
use wkt::FieldMask;
let x = UpdateManagedFolderRequest::new().set_update_mask(FieldMask::default()/* use setters */);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.
§Example
use wkt::FieldMask;
let x = UpdateManagedFolderRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateManagedFolderRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_if_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_match.
§Example
let x = UpdateManagedFolderRequest::new().set_if_metageneration_match(42);Sourcepub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_match.
§Example
let x = UpdateManagedFolderRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = UpdateManagedFolderRequest::new().set_or_clear_if_metageneration_match(None::<i32>);Sourcepub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_not_match.
§Example
let x = UpdateManagedFolderRequest::new().set_if_metageneration_not_match(42);Sourcepub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_not_match.
§Example
let x = UpdateManagedFolderRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = UpdateManagedFolderRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);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.
§Example
let x = UpdateManagedFolderRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for UpdateManagedFolderRequest
impl Clone for UpdateManagedFolderRequest
Source§fn clone(&self) -> UpdateManagedFolderRequest
fn clone(&self) -> UpdateManagedFolderRequest
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 UpdateManagedFolderRequest
impl Debug for UpdateManagedFolderRequest
Source§impl Default for UpdateManagedFolderRequest
impl Default for UpdateManagedFolderRequest
Source§fn default() -> UpdateManagedFolderRequest
fn default() -> UpdateManagedFolderRequest
Source§impl Message for UpdateManagedFolderRequest
impl Message for UpdateManagedFolderRequest
impl StructuralPartialEq for UpdateManagedFolderRequest
Auto Trait Implementations§
impl Freeze for UpdateManagedFolderRequest
impl RefUnwindSafe for UpdateManagedFolderRequest
impl Send for UpdateManagedFolderRequest
impl Sync for UpdateManagedFolderRequest
impl Unpin for UpdateManagedFolderRequest
impl UnsafeUnpin for UpdateManagedFolderRequest
impl UnwindSafe for UpdateManagedFolderRequest
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