pub enum Rules {
All,
Read,
}Expand description
The rules that a check of a pull request applies.
riff reads the link line and the trailer Issue:. The other rules
are the habits of riff itself. So a repository gets them only when
its riff config asks for them.
use hygiene::Rules;
assert!(Rules::All.applies("milestone"));
assert!(Rules::Read.applies("link") && Rules::Read.applies("issue-trailer"));
assert!(!Rules::Read.applies("title"));Variants§
All
Each rule of the table: the repository of riff, and a repository whose riff config asks for them.
Read
Only the rules for what riff reads: link and issue-trailer.
Implementations§
Trait Implementations§
impl Copy for Rules
impl Eq for Rules
impl StructuralPartialEq for Rules
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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