pub enum Action {
Show 13 variants
Deb822(Deb822Action),
Systemd(SystemdAction),
DesktopIni(DesktopIniAction),
Yaml(YamlAction),
Changelog(ChangelogAction),
Watch(WatchAction),
Makefile(MakefileAction),
Dep3(Dep3Action),
LintianOverrides(LintianOverridesAction),
Maintscript(MaintscriptAction),
Debcargo(DebcargoAction),
RunCommand(RunCommandAction),
Filesystem(FilesystemAction),
}Expand description
A change to apply to the working tree.
Dispatched on file kind: each per-file enum carries the actual operations.
Variants§
Deb822(Deb822Action)
An edit to a deb822 file (debian/control, debian/copyright, …).
Systemd(SystemdAction)
An edit to a systemd unit file (.service, .socket, .target, …).
DesktopIni(DesktopIniAction)
An edit to a freedesktop .desktop entry file.
Yaml(YamlAction)
An edit to a YAML file.
Changelog(ChangelogAction)
An edit to a debian/changelog file.
Watch(WatchAction)
An edit to a debian/watch file.
Makefile(MakefileAction)
An edit to a Makefile (typically debian/rules).
Dep3(Dep3Action)
An edit to a DEP-3 patch header (a quilt patch under
debian/patches/).
LintianOverrides(LintianOverridesAction)
An edit to a lintian-overrides file (debian/source/lintian-overrides
or debian/<pkg>.lintian-overrides).
Maintscript(MaintscriptAction)
An edit to a maintscript file (debian/maintscript or
debian/<pkg>.maintscript).
Debcargo(DebcargoAction)
An edit to a debian/debcargo.toml file. Used for Rust crate
packages where the control file is generated.
RunCommand(RunCommandAction)
Invoke an external tool that mutates files in the working tree (e.g.
debconf-updatepo). Use this only when the operation can’t be
expressed as one of the typed file actions above.
Filesystem(FilesystemAction)
A filesystem-level edit (chmod, write, delete, byte-range replace).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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>,
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
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
key and return true if they are equal.