#[non_exhaustive]pub struct NfsExport {
pub network_id: String,
pub permissions: Permissions,
pub no_root_squash: bool,
pub allow_suid: bool,
pub allow_dev: bool,
pub client: Option<Client>,
/* private fields */
}Expand description
A NFS export entry.
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.network_id: StringNetwork to use to publish the export.
permissions: PermissionsExport permissions.
no_root_squash: boolDisable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication.
allow_suid: boolAllow the setuid flag.
allow_dev: boolAllow dev flag in NfsShare AllowedClientsRequest.
client: Option<Client>A client object.
Implementations§
Source§impl NfsExport
impl NfsExport
pub fn new() -> Self
Sourcepub fn set_network_id<T: Into<String>>(self, v: T) -> Self
pub fn set_network_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_permissions<T: Into<Permissions>>(self, v: T) -> Self
pub fn set_permissions<T: Into<Permissions>>(self, v: T) -> Self
Sets the value of permissions.
§Example
ⓘ
use google_cloud_baremetalsolution_v2::model::volume_config::nfs_export::Permissions;
let x0 = NfsExport::new().set_permissions(Permissions::ReadOnly);
let x1 = NfsExport::new().set_permissions(Permissions::ReadWrite);Sourcepub fn set_no_root_squash<T: Into<bool>>(self, v: T) -> Self
pub fn set_no_root_squash<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_allow_suid<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_suid<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_allow_dev<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_dev<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_client<T: Into<Option<Client>>>(self, v: T) -> Self
pub fn set_client<T: Into<Option<Client>>>(self, v: T) -> Self
Sourcepub fn machine_id(&self) -> Option<&String>
pub fn machine_id(&self) -> Option<&String>
The value of client
if it holds a MachineId, None if the field is not set or
holds a different branch.
Sourcepub fn set_machine_id<T: Into<String>>(self, v: T) -> Self
pub fn set_machine_id<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for NfsExport
Auto Trait Implementations§
impl Freeze for NfsExport
impl RefUnwindSafe for NfsExport
impl Send for NfsExport
impl Sync for NfsExport
impl Unpin for NfsExport
impl UnwindSafe for NfsExport
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