pub struct ProtectedBranchAllowForkSyncing {
pub enabled: Option<bool>,
}
Expand description
ProtectedBranchAllowForkSyncing : Whether users can pull changes from upstream when the branch is locked. Set to true
to allow fork syncing. Set to false
to prevent fork syncing.
Fields§
§enabled: Option<bool>
Implementations§
Source§impl ProtectedBranchAllowForkSyncing
impl ProtectedBranchAllowForkSyncing
Sourcepub fn new() -> ProtectedBranchAllowForkSyncing
pub fn new() -> ProtectedBranchAllowForkSyncing
Whether users can pull changes from upstream when the branch is locked. Set to true
to allow fork syncing. Set to false
to prevent fork syncing.
Trait Implementations§
Source§impl Clone for ProtectedBranchAllowForkSyncing
impl Clone for ProtectedBranchAllowForkSyncing
Source§fn clone(&self) -> ProtectedBranchAllowForkSyncing
fn clone(&self) -> ProtectedBranchAllowForkSyncing
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 Default for ProtectedBranchAllowForkSyncing
impl Default for ProtectedBranchAllowForkSyncing
Source§fn default() -> ProtectedBranchAllowForkSyncing
fn default() -> ProtectedBranchAllowForkSyncing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtectedBranchAllowForkSyncing
impl<'de> Deserialize<'de> for ProtectedBranchAllowForkSyncing
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
Source§impl PartialEq for ProtectedBranchAllowForkSyncing
impl PartialEq for ProtectedBranchAllowForkSyncing
Source§fn eq(&self, other: &ProtectedBranchAllowForkSyncing) -> bool
fn eq(&self, other: &ProtectedBranchAllowForkSyncing) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ProtectedBranchAllowForkSyncing
Auto Trait Implementations§
impl Freeze for ProtectedBranchAllowForkSyncing
impl RefUnwindSafe for ProtectedBranchAllowForkSyncing
impl Send for ProtectedBranchAllowForkSyncing
impl Sync for ProtectedBranchAllowForkSyncing
impl Unpin for ProtectedBranchAllowForkSyncing
impl UnwindSafe for ProtectedBranchAllowForkSyncing
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