pub enum WatchAspect {
Version,
Source,
MatchingPattern,
Template(&'static str),
Option(&'static str),
}Expand description
What a Trigger::Watch detector reads from debian/watch.
The aspects are framed in terms of the watch-file model — a list of upstream-source entries with options — independently of whether they’re encoded as line-based v1-4 syntax or v5 deb822 paragraphs.
Variants§
Version
The watch-file version declaration (line 1 of v1-4, the
Version: field of the v5 header paragraph).
Source
The source URL of any entry (any kind).
MatchingPattern
The matching-pattern of any non-template entry.
Template(&'static str)
Template entries of a given kind (e.g. "GitHub", "PyPI",
"CRAN"); "*" matches any template kind.
Option(&'static str)
Entries that set a specific option (e.g. "pgpsigurlmangle",
"dversionmangle", "filenamemangle").
Trait Implementations§
Source§impl Clone for WatchAspect
impl Clone for WatchAspect
Source§fn clone(&self) -> WatchAspect
fn clone(&self) -> WatchAspect
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 WatchAspect
impl Debug for WatchAspect
Source§impl PartialEq for WatchAspect
impl PartialEq for WatchAspect
Source§fn eq(&self, other: &WatchAspect) -> bool
fn eq(&self, other: &WatchAspect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WatchAspect
impl Eq for WatchAspect
impl StructuralPartialEq for WatchAspect
Auto Trait Implementations§
impl Freeze for WatchAspect
impl RefUnwindSafe for WatchAspect
impl Send for WatchAspect
impl Sync for WatchAspect
impl Unpin for WatchAspect
impl UnsafeUnpin for WatchAspect
impl UnwindSafe for WatchAspect
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.