#[non_exhaustive]pub struct DrivePatch {
pub drive_id: DriveId,
pub path_on_host: Option<SafePath>,
pub rate_limiter: Option<Value>,
}Expand description
Validated /drives/{id} PATCH body.
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.drive_id: DriveIdValidated drive ID.
path_on_host: Option<SafePath>Replacement path, if any.
rate_limiter: Option<Value>Replacement rate limiter.
Trait Implementations§
Source§impl Clone for DrivePatch
impl Clone for DrivePatch
Source§fn clone(&self) -> DrivePatch
fn clone(&self) -> DrivePatch
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 DrivePatch
impl Debug for DrivePatch
Source§impl Serialize for DrivePatch
impl Serialize for DrivePatch
Source§impl TryFrom<RawDrivePatch> for DrivePatch
impl TryFrom<RawDrivePatch> for DrivePatch
Auto Trait Implementations§
impl Freeze for DrivePatch
impl RefUnwindSafe for DrivePatch
impl Send for DrivePatch
impl Sync for DrivePatch
impl Unpin for DrivePatch
impl UnsafeUnpin for DrivePatch
impl UnwindSafe for DrivePatch
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