#[non_exhaustive]pub struct NfsShare {
pub name: String,
pub nfs_share_id: String,
pub id: String,
pub state: State,
pub volume: String,
pub allowed_clients: Vec<AllowedClient>,
pub labels: HashMap<String, String>,
pub requested_size_gib: i64,
pub storage_type: StorageType,
/* private fields */
}Expand description
An NFS share.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringImmutable. The name of the NFS share.
Output only. An identifier for the NFS share, generated by the backend.
This field will be deprecated in the future, use id instead.
id: StringOutput only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.
state: StateOutput only. The state of the NFS share.
volume: StringOutput only. The underlying volume of the share. Created automatically during provisioning.
allowed_clients: Vec<AllowedClient>List of allowed access points.
labels: HashMap<String, String>Labels as key value pairs.
requested_size_gib: i64The requested size, in GiB.
storage_type: StorageTypeImmutable. The storage type of the underlying volume.
Implementations§
pub fn new() -> Self
Sourcepub fn set_volume<T: Into<String>>(self, v: T) -> Self
pub fn set_volume<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_allowed_clients<T, V>(self, v: T) -> Self
pub fn set_allowed_clients<T, V>(self, v: T) -> Self
Sets the value of allowed_clients.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::nfs_share::AllowedClient;
let x = NfsShare::new()
.set_allowed_clients([
AllowedClient::default()/* use setters */,
AllowedClient::default()/* use (different) setters */,
]);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_requested_size_gib<T: Into<i64>>(self, v: T) -> Self
pub fn set_requested_size_gib<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_storage_type<T: Into<StorageType>>(self, v: T) -> Self
pub fn set_storage_type<T: Into<StorageType>>(self, v: T) -> Self
Sets the value of storage_type.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::nfs_share::StorageType;
let x0 = NfsShare::new().set_storage_type(StorageType::Ssd);
let x1 = NfsShare::new().set_storage_type(StorageType::Hdd);Trait Implementations§
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more