pub struct BranchRules {
pub mode: Mode,
pub rules: BTreeMap<RuleName, BranchRule>,
}Expand description
Desired branch-protection rules.
Fields§
§mode: ModeWhether undeclared branch rules are deleted.
rules: BTreeMap<RuleName, BranchRule>The desired rules, keyed by rule name.
Trait Implementations§
Source§impl Clone for BranchRules
impl Clone for BranchRules
Source§fn clone(&self) -> BranchRules
fn clone(&self) -> BranchRules
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 BranchRules
impl Debug for BranchRules
impl Eq for BranchRules
Source§impl<'ʄ> Facet<'ʄ> for BranchRules
impl<'ʄ> Facet<'ʄ> for BranchRules
Source§impl PartialEq for BranchRules
impl PartialEq for BranchRules
impl StructuralPartialEq for BranchRules
Auto Trait Implementations§
impl Freeze for BranchRules
impl RefUnwindSafe for BranchRules
impl Send for BranchRules
impl Sync for BranchRules
impl Unpin for BranchRules
impl UnsafeUnpin for BranchRules
impl UnwindSafe for BranchRules
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.