#[non_exhaustive]pub struct StorageLayout {
pub name: String,
pub location: String,
pub location_type: String,
pub custom_placement_config: Option<CustomPlacementConfig>,
pub hierarchical_namespace: Option<HierarchicalNamespace>,
/* private fields */
}Expand description
The storage layout configuration of a bucket.
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.name: StringOutput only. The name of the StorageLayout resource.
Format: projects/{project}/buckets/{bucket}/storageLayout
location: StringOutput only. The location of the bucket.
location_type: StringOutput only. The location type of the bucket (region, dual-region, multi-region, etc).
custom_placement_config: Option<CustomPlacementConfig>Output only. The data placement configuration for custom dual region. If there is no configuration, this is not a custom dual region bucket.
hierarchical_namespace: Option<HierarchicalNamespace>Output only. The bucket’s hierarchical namespace configuration. If there is no configuration, the hierarchical namespace is disabled.
Implementations§
Source§impl StorageLayout
impl StorageLayout
pub fn new() -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_location_type<T: Into<String>>(self, v: T) -> Self
pub fn set_location_type<T: Into<String>>(self, v: T) -> Self
Sets the value of location_type.
§Example
let x = StorageLayout::new().set_location_type("example");Sourcepub fn set_custom_placement_config<T>(self, v: T) -> Selfwhere
T: Into<CustomPlacementConfig>,
pub fn set_custom_placement_config<T>(self, v: T) -> Selfwhere
T: Into<CustomPlacementConfig>,
Sets the value of custom_placement_config.
§Example
use google_cloud_storage::model::storage_layout::CustomPlacementConfig;
let x = StorageLayout::new().set_custom_placement_config(CustomPlacementConfig::default()/* use setters */);Sourcepub fn set_or_clear_custom_placement_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomPlacementConfig>,
pub fn set_or_clear_custom_placement_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomPlacementConfig>,
Sets or clears the value of custom_placement_config.
§Example
use google_cloud_storage::model::storage_layout::CustomPlacementConfig;
let x = StorageLayout::new().set_or_clear_custom_placement_config(Some(CustomPlacementConfig::default()/* use setters */));
let x = StorageLayout::new().set_or_clear_custom_placement_config(None::<CustomPlacementConfig>);Sourcepub fn set_hierarchical_namespace<T>(self, v: T) -> Selfwhere
T: Into<HierarchicalNamespace>,
pub fn set_hierarchical_namespace<T>(self, v: T) -> Selfwhere
T: Into<HierarchicalNamespace>,
Sets the value of hierarchical_namespace.
§Example
use google_cloud_storage::model::storage_layout::HierarchicalNamespace;
let x = StorageLayout::new().set_hierarchical_namespace(HierarchicalNamespace::default()/* use setters */);Sourcepub fn set_or_clear_hierarchical_namespace<T>(self, v: Option<T>) -> Selfwhere
T: Into<HierarchicalNamespace>,
pub fn set_or_clear_hierarchical_namespace<T>(self, v: Option<T>) -> Selfwhere
T: Into<HierarchicalNamespace>,
Sets or clears the value of hierarchical_namespace.
§Example
use google_cloud_storage::model::storage_layout::HierarchicalNamespace;
let x = StorageLayout::new().set_or_clear_hierarchical_namespace(Some(HierarchicalNamespace::default()/* use setters */));
let x = StorageLayout::new().set_or_clear_hierarchical_namespace(None::<HierarchicalNamespace>);Trait Implementations§
Source§impl Clone for StorageLayout
impl Clone for StorageLayout
Source§fn clone(&self) -> StorageLayout
fn clone(&self) -> StorageLayout
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageLayout
impl Debug for StorageLayout
Source§impl Default for StorageLayout
impl Default for StorageLayout
Source§fn default() -> StorageLayout
fn default() -> StorageLayout
Source§impl Message for StorageLayout
impl Message for StorageLayout
Source§impl PartialEq for StorageLayout
impl PartialEq for StorageLayout
impl StructuralPartialEq for StorageLayout
Auto Trait Implementations§
impl Freeze for StorageLayout
impl RefUnwindSafe for StorageLayout
impl Send for StorageLayout
impl Sync for StorageLayout
impl Unpin for StorageLayout
impl UnwindSafe for StorageLayout
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