pub enum WorkspacePatchOperationKind {
Add,
Update,
Delete,
Unknown,
}Expand description
File operation that produced a successful change entry.
A delete and an update that empties a file both end at zero bytes, so the envelope names the operation instead of leaving callers to infer it.
Variants§
Add
Update
Delete
Unknown
An operation this build does not know.
The tool never writes this variant, but a session recorded by a newer build must still be readable, so an unknown operation is preserved instead of failing the whole result.
Trait Implementations§
Source§impl Clone for WorkspacePatchOperationKind
impl Clone for WorkspacePatchOperationKind
impl Copy for WorkspacePatchOperationKind
Source§impl Debug for WorkspacePatchOperationKind
impl Debug for WorkspacePatchOperationKind
Source§impl<'de> Deserialize<'de> for WorkspacePatchOperationKind
impl<'de> Deserialize<'de> for WorkspacePatchOperationKind
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
impl Eq for WorkspacePatchOperationKind
impl StructuralPartialEq for WorkspacePatchOperationKind
Auto Trait Implementations§
impl Forget for WorkspacePatchOperationKind
impl Freeze for WorkspacePatchOperationKind
impl Move for WorkspacePatchOperationKind
impl RefUnwindSafe for WorkspacePatchOperationKind
impl Send for WorkspacePatchOperationKind
impl Sync for WorkspacePatchOperationKind
impl Unpin for WorkspacePatchOperationKind
impl UnsafeUnpin for WorkspacePatchOperationKind
impl UnwindSafe for WorkspacePatchOperationKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.