pub struct NfsExportOptions {
pub access_mode: Option<String>,
pub anon_gid: Option<i64>,
pub anon_uid: Option<i64>,
pub ip_ranges: Option<Vec<String>>,
pub squash_mode: Option<String>,
}
Expand description
NFS export options specifications.
This type is not used in any activity, and only used as part of another schema.
Fields§
§access_mode: Option<String>
Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
anon_gid: Option<i64>
An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
anon_uid: Option<i64>
An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
ip_ranges: Option<Vec<String>>
List of either an IPv4 addresses in the format {octet1}.{octet2}.{octet3}.{octet4}
or CIDR ranges in the format {octet1}.{octet2}.{octet3}.{octet4}/{mask size}
which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
squash_mode: Option<String>
Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
Trait Implementations§
Source§impl Clone for NfsExportOptions
impl Clone for NfsExportOptions
Source§fn clone(&self) -> NfsExportOptions
fn clone(&self) -> NfsExportOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NfsExportOptions
impl Debug for NfsExportOptions
Source§impl Default for NfsExportOptions
impl Default for NfsExportOptions
Source§fn default() -> NfsExportOptions
fn default() -> NfsExportOptions
Source§impl<'de> Deserialize<'de> for NfsExportOptions
impl<'de> Deserialize<'de> for NfsExportOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for NfsExportOptions
impl Serialize for NfsExportOptions
impl Part for NfsExportOptions
Auto Trait Implementations§
impl Freeze for NfsExportOptions
impl RefUnwindSafe for NfsExportOptions
impl Send for NfsExportOptions
impl Sync for NfsExportOptions
impl Unpin for NfsExportOptions
impl UnwindSafe for NfsExportOptions
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more