pub enum Operation {
Create {
name: String,
rule: BranchRule,
},
Patch {
name: String,
edit: EditBranchProtectionOption,
},
Delete {
name: String,
},
}Expand description
One write to a branch rule.
Variants§
Create
Create a branch rule with its complete desired body.
Fields
§
rule: BranchRuleThe rule’s complete desired configuration.
Patch
Patch only changed fields of an existing branch rule.
Fields
§
edit: EditBranchProtectionOptionThe fields whose desired value differs from the current one.
Delete
Delete a branch rule.
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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.