pub struct FormatOptions {
pub label: String,
pub quick: bool,
pub sector_size: u32,
pub cluster_size: u32,
pub extra_args: Vec<String>,
}Expand description
Options for format.
Fields§
§label: StringVolume label (NTFS max 11 chars, but we accept longer and warn).
quick: boolQuick format (no full surface write). Default true.
sector_size: u32Sector size in bytes (512 or 4096). Default 4096 (GPT default).
cluster_size: u32Cluster size in bytes (usually 4096).
extra_args: Vec<String>Extra ntfs-3g newfs_ntfs arguments.
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormatOptions
impl Debug for FormatOptions
Source§impl Default for FormatOptions
impl Default for FormatOptions
Source§impl<'de> Deserialize<'de> for FormatOptions
impl<'de> Deserialize<'de> for FormatOptions
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnsafeUnpin for FormatOptions
impl UnwindSafe for FormatOptions
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