pub struct RefRule {
pub pattern: RefPattern,
pub allowed_signers: Option<BTreeSet<[u8; 32]>>,
pub fast_forward_only: bool,
}Expand description
One rule: every ref its pattern matches. Overlapping rules all apply.
Fields§
§pattern: RefPatternThe refs the rule covers. A packmap ref is covered through its head, so no pattern names one.
allowed_signers: Option<BTreeSet<[u8; 32]>>Raw Ed25519 keys of the authenticated operation signers that may
move a matching ref, the owner included; None places no limit.
Overlapping rules intersect.
fast_forward_only: boolA matching ref may only fast-forward or be created, for every principal. It needs indexed mode.
Trait Implementations§
impl Eq for RefRule
impl StructuralPartialEq for RefRule
Auto Trait Implementations§
impl Freeze for RefRule
impl RefUnwindSafe for RefRule
impl Send for RefRule
impl Sync for RefRule
impl Unpin for RefRule
impl UnsafeUnpin for RefRule
impl UnwindSafe for RefRule
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