pub enum PolicyLine {
Severity {
target: String,
severity: Severity,
},
Skip {
target: String,
},
Set {
key: String,
value: String,
},
}Expand description
A committed policy statement about a BUILT-IN (or declared) check — the
team’s decision, shipped with the repository, trust-gated like everything
else the manifest says. See policy.
Variants§
Severity
severity <check|short-name|trigger> warn|block
Skip
skip <check|short-name|trigger>
Set
set <key> <value> — a committed default for an allowlisted
amont.* config key. key is the FULL git key (amont.timeout),
canonicalised from whatever case the file used, because git keys are
case-insensitive and a policy file stricter than git is a trap.
Implementations§
Trait Implementations§
Source§impl Clone for PolicyLine
impl Clone for PolicyLine
Source§fn clone(&self) -> PolicyLine
fn clone(&self) -> PolicyLine
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 PolicyLine
impl Debug for PolicyLine
impl Eq for PolicyLine
Source§impl PartialEq for PolicyLine
impl PartialEq for PolicyLine
impl StructuralPartialEq for PolicyLine
Auto Trait Implementations§
impl Freeze for PolicyLine
impl RefUnwindSafe for PolicyLine
impl Send for PolicyLine
impl Sync for PolicyLine
impl Unpin for PolicyLine
impl UnsafeUnpin for PolicyLine
impl UnwindSafe for PolicyLine
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