Struct rustcracker::model::partial_drive::PartialDrive
source · pub struct PartialDrive {
pub drive_id: String,
pub path_on_host: Option<PathBuf>,
pub rate_limiter: Option<RateLimiter>,
}Fields§
§drive_id: Stringdrive id Required: true
path_on_host: Option<PathBuf>Host level path for the guest drive This field is optional for virtio-block config and should be omitted for vhost-user-block configuration.
rate_limiter: Option<RateLimiter>rate limiter
Implementations§
source§impl PartialDrive
impl PartialDrive
pub fn get_drive_id(&self) -> String
pub fn validate(&self) -> Result<(), MachineError>
Trait Implementations§
source§impl Clone for PartialDrive
impl Clone for PartialDrive
source§fn clone(&self) -> PartialDrive
fn clone(&self) -> PartialDrive
Returns a copy 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 PartialDrive
impl Debug for PartialDrive
source§impl<'de> Deserialize<'de> for PartialDrive
impl<'de> Deserialize<'de> for PartialDrive
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<'a> Json<'a> for PartialDrive
impl<'a> Json<'a> for PartialDrive
Auto Trait Implementations§
impl RefUnwindSafe for PartialDrive
impl Send for PartialDrive
impl Sync for PartialDrive
impl Unpin for PartialDrive
impl UnwindSafe for PartialDrive
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