Struct firepilot::builder::drive::DriveBuilder
source · pub struct DriveBuilder {
pub drive_id: Option<String>,
pub path_on_host: Option<PathBuf>,
pub is_root_device: bool,
pub is_read_only: bool,
}
Fields§
§drive_id: Option<String>
§path_on_host: Option<PathBuf>
§is_root_device: bool
§is_read_only: bool
Implementations§
source§impl DriveBuilder
impl DriveBuilder
pub fn new() -> DriveBuilder
pub fn with_drive_id(self, drive_id: String) -> DriveBuilder
pub fn with_path_on_host(self, path_on_host: PathBuf) -> DriveBuilder
pub fn as_root_device(self) -> DriveBuilder
pub fn as_read_only(self) -> DriveBuilder
Trait Implementations§
source§impl Builder<Drive> for DriveBuilder
impl Builder<Drive> for DriveBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DriveBuilder
impl Send for DriveBuilder
impl Sync for DriveBuilder
impl Unpin for DriveBuilder
impl UnwindSafe for DriveBuilder
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