pub struct RawDriveConfig {
pub drive_id: String,
pub path_on_host: String,
pub is_root_device: bool,
pub is_read_only: bool,
pub cache_type: CacheType,
pub io_engine: IoEngine,
pub partuuid: Option<String>,
pub rate_limiter: Option<Value>,
pub socket: Option<String>,
}Expand description
Raw /drives/{id} PUT body off the wire.
Fields§
§drive_id: StringCaller-supplied unique identifier (^[A-Za-z0-9_]{1,64}$).
path_on_host: StringHost filesystem path to the backing image.
is_root_device: boolWhether the guest should mount this as the root block device.
is_read_only: boolWhether the guest sees the device read-only.
cache_type: CacheTypeCaching policy.
io_engine: IoEngineIO engine.
partuuid: Option<String>Root partition UUID for root=PARTUUID=.... Only honored when is_root_device.
rate_limiter: Option<Value>Optional rate limiter (passed through verbatim for now).
socket: Option<String>vhost-user socket path. Accept-and-warn (vhost-user is Linux-only).
Trait Implementations§
Source§impl Clone for RawDriveConfig
impl Clone for RawDriveConfig
Source§fn clone(&self) -> RawDriveConfig
fn clone(&self) -> RawDriveConfig
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 RawDriveConfig
impl Debug for RawDriveConfig
Source§impl<'de> Deserialize<'de> for RawDriveConfig
impl<'de> Deserialize<'de> for RawDriveConfig
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
Source§impl TryFrom<RawDriveConfig> for DriveConfig
impl TryFrom<RawDriveConfig> for DriveConfig
Auto Trait Implementations§
impl Freeze for RawDriveConfig
impl RefUnwindSafe for RawDriveConfig
impl Send for RawDriveConfig
impl Sync for RawDriveConfig
impl Unpin for RawDriveConfig
impl UnsafeUnpin for RawDriveConfig
impl UnwindSafe for RawDriveConfig
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