pub enum DebcargoAction {
SetSourceField {
file: PathBuf,
field: String,
value: String,
},
SetTopLevelBool {
file: PathBuf,
field: String,
value: bool,
},
}Expand description
Edits to a debian/debcargo.toml file.
Debcargo manages its own control file; we manipulate scalar fields under
the [source] table directly. Only a small set of operations is needed
in practice — the equivalent of typed setters on the generated control
fields (Vcs-Git, Vcs-Browser, Standards-Version, Section).
Variants§
SetSourceField
Set a string field on the [source] table. Creates the table and/or
the field if absent. Overwrites any existing value.
Fields
SetTopLevelBool
Set a boolean field at the top level of the file. Creates the field if absent. Overwrites any existing value.
Trait Implementations§
Source§impl Clone for DebcargoAction
impl Clone for DebcargoAction
Source§fn clone(&self) -> DebcargoAction
fn clone(&self) -> DebcargoAction
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 DebcargoAction
impl Debug for DebcargoAction
Source§impl<'de> Deserialize<'de> for DebcargoAction
impl<'de> Deserialize<'de> for DebcargoAction
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 PartialEq for DebcargoAction
impl PartialEq for DebcargoAction
Source§fn eq(&self, other: &DebcargoAction) -> bool
fn eq(&self, other: &DebcargoAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DebcargoAction
impl Serialize for DebcargoAction
impl Eq for DebcargoAction
impl StructuralPartialEq for DebcargoAction
Auto Trait Implementations§
impl Freeze for DebcargoAction
impl RefUnwindSafe for DebcargoAction
impl Send for DebcargoAction
impl Sync for DebcargoAction
impl Unpin for DebcargoAction
impl UnsafeUnpin for DebcargoAction
impl UnwindSafe for DebcargoAction
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,
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.