pub struct PatternRule {
pub negate: bool,
pub operator: PatternOperator,
pub pattern: String,
pub name: Option<String>,
}Expand description
A rule that requires commit or ref metadata to match a pattern.
Fields§
§negate: boolWhether the text must not match.
operator: PatternOperatorHow the pattern is matched.
pattern: StringThe text or regular expression to match.
name: Option<String>A label for the rule.
Trait Implementations§
Source§impl Clone for PatternRule
impl Clone for PatternRule
Source§fn clone(&self) -> PatternRule
fn clone(&self) -> PatternRule
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 PatternRule
impl Debug for PatternRule
impl Eq for PatternRule
Source§impl<'ʄ> Facet<'ʄ> for PatternRule
impl<'ʄ> Facet<'ʄ> for PatternRule
Source§impl PartialEq for PatternRule
impl PartialEq for PatternRule
impl StructuralPartialEq for PatternRule
Auto Trait Implementations§
impl Freeze for PatternRule
impl RefUnwindSafe for PatternRule
impl Send for PatternRule
impl Sync for PatternRule
impl Unpin for PatternRule
impl UnsafeUnpin for PatternRule
impl UnwindSafe for PatternRule
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.