pub enum Dep3Action {
SetField {
file: PathBuf,
field: String,
value: String,
},
RemoveField {
file: PathBuf,
field: String,
},
RenameField {
file: PathBuf,
from_field: String,
to_field: String,
},
}Expand description
Edits to a DEP-3 patch header.
DEP-3 headers live at the top of a quilt patch (under
debian/patches/) followed by a blank line and the unified diff. The
applier parses just the header (everything before the first ---,
diff , or Index: line), edits it, and reassembles the file.
Variants§
SetField
Set a field’s value, inserting it if missing. The field is added in the patch header’s existing position when present, or appended.
Fields
RemoveField
Remove a field. A no-op if the field isn’t present.
Fields
RenameField
Rename from_field to to_field, preserving its value. A no-op
if from_field isn’t present. If to_field already exists, it is
overwritten.
Trait Implementations§
Source§impl Clone for Dep3Action
impl Clone for Dep3Action
Source§fn clone(&self) -> Dep3Action
fn clone(&self) -> Dep3Action
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 Dep3Action
impl Debug for Dep3Action
Source§impl<'de> Deserialize<'de> for Dep3Action
impl<'de> Deserialize<'de> for Dep3Action
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 Dep3Action
Source§impl PartialEq for Dep3Action
impl PartialEq for Dep3Action
Source§fn eq(&self, other: &Dep3Action) -> bool
fn eq(&self, other: &Dep3Action) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Dep3Action
impl Serialize for Dep3Action
impl StructuralPartialEq for Dep3Action
Auto Trait Implementations§
impl Freeze for Dep3Action
impl RefUnwindSafe for Dep3Action
impl Send for Dep3Action
impl Sync for Dep3Action
impl Unpin for Dep3Action
impl UnsafeUnpin for Dep3Action
impl UnwindSafe for Dep3Action
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.