Struct googapis::google::cloud::filestore::v1::NfsExportOptions [−][src]
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
Returns the enum value of access_mode
, or the default if the field is set to an invalid enum value.
Sets access_mode
to the provided enum value.
Returns the enum value of squash_mode
, or the default if the field is set to an invalid enum value.
Sets squash_mode
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NfsExportOptions
impl Send for NfsExportOptions
impl Sync for NfsExportOptions
impl Unpin for NfsExportOptions
impl UnwindSafe for NfsExportOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more