#[non_exhaustive]pub struct MountOption {
pub export: String,
pub export_full: String,
pub protocol: Protocols,
pub instructions: String,
pub ip_address: String,
/* private fields */
}Expand description
View only mount options for a volume.
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.export: StringExport string
export_full: StringFull export string
protocol: ProtocolsProtocol to mount with.
instructions: StringInstructions for mounting
ip_address: StringOutput only. IP Address.
Implementations§
Source§impl MountOption
impl MountOption
pub fn new() -> Self
Sourcepub fn set_export<T: Into<String>>(self, v: T) -> Self
pub fn set_export<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_export_full<T: Into<String>>(self, v: T) -> Self
pub fn set_export_full<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_protocol<T: Into<Protocols>>(self, v: T) -> Self
pub fn set_protocol<T: Into<Protocols>>(self, v: T) -> Self
Sourcepub fn set_instructions<T: Into<String>>(self, v: T) -> Self
pub fn set_instructions<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for MountOption
impl Clone for MountOption
Source§fn clone(&self) -> MountOption
fn clone(&self) -> MountOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MountOption
impl Debug for MountOption
Source§impl Default for MountOption
impl Default for MountOption
Source§fn default() -> MountOption
fn default() -> MountOption
Returns the “default value” for a type. Read more
Source§impl Message for MountOption
impl Message for MountOption
Source§impl PartialEq for MountOption
impl PartialEq for MountOption
impl StructuralPartialEq for MountOption
Auto Trait Implementations§
impl Freeze for MountOption
impl RefUnwindSafe for MountOption
impl Send for MountOption
impl Sync for MountOption
impl Unpin for MountOption
impl UnwindSafe for MountOption
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