pub struct ProtectedBranchLockBranch {
pub enabled: Option<bool>,
}
Expand description
ProtectedBranchLockBranch : 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 ProtectedBranchLockBranch
impl ProtectedBranchLockBranch
Sourcepub fn new() -> ProtectedBranchLockBranch
pub fn new() -> ProtectedBranchLockBranch
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 ProtectedBranchLockBranch
impl Clone for ProtectedBranchLockBranch
Source§fn clone(&self) -> ProtectedBranchLockBranch
fn clone(&self) -> ProtectedBranchLockBranch
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 ProtectedBranchLockBranch
impl Debug for ProtectedBranchLockBranch
Source§impl Default for ProtectedBranchLockBranch
impl Default for ProtectedBranchLockBranch
Source§fn default() -> ProtectedBranchLockBranch
fn default() -> ProtectedBranchLockBranch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtectedBranchLockBranch
impl<'de> Deserialize<'de> for ProtectedBranchLockBranch
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 ProtectedBranchLockBranch
Auto Trait Implementations§
impl Freeze for ProtectedBranchLockBranch
impl RefUnwindSafe for ProtectedBranchLockBranch
impl Send for ProtectedBranchLockBranch
impl Sync for ProtectedBranchLockBranch
impl Unpin for ProtectedBranchLockBranch
impl UnwindSafe for ProtectedBranchLockBranch
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