pub struct DiscardRequest {
pub path: String,
}Expand description
Discard overlay changes for a file: removes it from the overlay upper dir, revealing the original host version from the lower layer.
Fields§
§path: StringPath relative to the overlay mount (e.g., “/workspace/src/main.rs”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiscardRequest
impl<'de> Deserialize<'de> for DiscardRequest
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 DiscardRequest
impl RefUnwindSafe for DiscardRequest
impl Send for DiscardRequest
impl Sync for DiscardRequest
impl Unpin for DiscardRequest
impl UnsafeUnpin for DiscardRequest
impl UnwindSafe for DiscardRequest
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