Struct google_api_proto::google::cloud::filestore::v1::NfsExportOptions
source · pub struct NfsExportOptions {
pub ip_ranges: Vec<String>,
pub access_mode: i32,
pub squash_mode: i32,
pub anon_uid: i64,
pub anon_gid: i64,
}
Expand description
NFS export options specifications.
Fields§
§ip_ranges: 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.
access_mode: i32
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.
squash_mode: i32
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.
anon_uid: 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.
anon_gid: 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.
Implementations§
source§impl NfsExportOptions
impl NfsExportOptions
sourcepub fn access_mode(&self) -> AccessMode
pub fn access_mode(&self) -> AccessMode
Returns the enum value of access_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_access_mode(&mut self, value: AccessMode)
pub fn set_access_mode(&mut self, value: AccessMode)
Sets access_mode
to the provided enum value.
sourcepub fn squash_mode(&self) -> SquashMode
pub fn squash_mode(&self) -> SquashMode
Returns the enum value of squash_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_squash_mode(&mut self, value: SquashMode)
pub fn set_squash_mode(&mut self, value: SquashMode)
Sets squash_mode
to the provided enum value.
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§impl Message for NfsExportOptions
impl Message for NfsExportOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for NfsExportOptions
impl PartialEq for NfsExportOptions
source§fn eq(&self, other: &NfsExportOptions) -> bool
fn eq(&self, other: &NfsExportOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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