pub struct BranchProtectionAllowForkSyncing {
pub enabled: Option<bool>,
}
Expand description
BranchProtectionAllowForkSyncing : 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 BranchProtectionAllowForkSyncing
impl BranchProtectionAllowForkSyncing
Sourcepub fn new() -> BranchProtectionAllowForkSyncing
pub fn new() -> BranchProtectionAllowForkSyncing
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 BranchProtectionAllowForkSyncing
impl Clone for BranchProtectionAllowForkSyncing
Source§fn clone(&self) -> BranchProtectionAllowForkSyncing
fn clone(&self) -> BranchProtectionAllowForkSyncing
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 BranchProtectionAllowForkSyncing
impl Default for BranchProtectionAllowForkSyncing
Source§fn default() -> BranchProtectionAllowForkSyncing
fn default() -> BranchProtectionAllowForkSyncing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchProtectionAllowForkSyncing
impl<'de> Deserialize<'de> for BranchProtectionAllowForkSyncing
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 BranchProtectionAllowForkSyncing
impl PartialEq for BranchProtectionAllowForkSyncing
Source§fn eq(&self, other: &BranchProtectionAllowForkSyncing) -> bool
fn eq(&self, other: &BranchProtectionAllowForkSyncing) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for BranchProtectionAllowForkSyncing
Auto Trait Implementations§
impl Freeze for BranchProtectionAllowForkSyncing
impl RefUnwindSafe for BranchProtectionAllowForkSyncing
impl Send for BranchProtectionAllowForkSyncing
impl Sync for BranchProtectionAllowForkSyncing
impl Unpin for BranchProtectionAllowForkSyncing
impl UnwindSafe for BranchProtectionAllowForkSyncing
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