pub struct BranchProtectionLockBranch {
pub enabled: Option<bool>,
}
Expand description
BranchProtectionLockBranch : Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.
Fields§
§enabled: Option<bool>
Implementations§
Source§impl BranchProtectionLockBranch
impl BranchProtectionLockBranch
Sourcepub fn new() -> BranchProtectionLockBranch
pub fn new() -> BranchProtectionLockBranch
Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.
Trait Implementations§
Source§impl Clone for BranchProtectionLockBranch
impl Clone for BranchProtectionLockBranch
Source§fn clone(&self) -> BranchProtectionLockBranch
fn clone(&self) -> BranchProtectionLockBranch
Returns a duplicate of the value. Read more
1.0.0 · 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 BranchProtectionLockBranch
impl Debug for BranchProtectionLockBranch
Source§impl Default for BranchProtectionLockBranch
impl Default for BranchProtectionLockBranch
Source§fn default() -> BranchProtectionLockBranch
fn default() -> BranchProtectionLockBranch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchProtectionLockBranch
impl<'de> Deserialize<'de> for BranchProtectionLockBranch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BranchProtectionLockBranch
Auto Trait Implementations§
impl Freeze for BranchProtectionLockBranch
impl RefUnwindSafe for BranchProtectionLockBranch
impl Send for BranchProtectionLockBranch
impl Sync for BranchProtectionLockBranch
impl Unpin for BranchProtectionLockBranch
impl UnwindSafe for BranchProtectionLockBranch
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