pub struct ProtectedBranch {Show 13 fields
pub url: String,
pub required_status_checks: Option<Box<StatusCheckPolicy>>,
pub required_pull_request_reviews: Option<Box<ProtectedBranchRequiredPullRequestReviews>>,
pub required_signatures: Option<Box<BranchProtectionRequiredSignatures>>,
pub enforce_admins: Option<Box<ProtectedBranchEnforceAdmins>>,
pub required_linear_history: Option<Box<ProtectedBranchRequiredLinearHistory>>,
pub allow_force_pushes: Option<Box<ProtectedBranchRequiredLinearHistory>>,
pub allow_deletions: Option<Box<ProtectedBranchRequiredLinearHistory>>,
pub restrictions: Option<Box<BranchRestrictionPolicy>>,
pub required_conversation_resolution: Option<Box<ProtectedBranchRequiredConversationResolution>>,
pub block_creations: Option<Box<ProtectedBranchRequiredLinearHistory>>,
pub lock_branch: Option<Box<ProtectedBranchLockBranch>>,
pub allow_fork_syncing: Option<Box<ProtectedBranchAllowForkSyncing>>,
}
Expand description
ProtectedBranch : Branch protections protect branches
Fields§
§url: String
§required_status_checks: Option<Box<StatusCheckPolicy>>
§required_pull_request_reviews: Option<Box<ProtectedBranchRequiredPullRequestReviews>>
§required_signatures: Option<Box<BranchProtectionRequiredSignatures>>
§enforce_admins: Option<Box<ProtectedBranchEnforceAdmins>>
§required_linear_history: Option<Box<ProtectedBranchRequiredLinearHistory>>
§allow_force_pushes: Option<Box<ProtectedBranchRequiredLinearHistory>>
§allow_deletions: Option<Box<ProtectedBranchRequiredLinearHistory>>
§restrictions: Option<Box<BranchRestrictionPolicy>>
§required_conversation_resolution: Option<Box<ProtectedBranchRequiredConversationResolution>>
§block_creations: Option<Box<ProtectedBranchRequiredLinearHistory>>
§lock_branch: Option<Box<ProtectedBranchLockBranch>>
§allow_fork_syncing: Option<Box<ProtectedBranchAllowForkSyncing>>
Implementations§
Source§impl ProtectedBranch
impl ProtectedBranch
Sourcepub fn new(url: String) -> ProtectedBranch
pub fn new(url: String) -> ProtectedBranch
Branch protections protect branches
Trait Implementations§
Source§impl Clone for ProtectedBranch
impl Clone for ProtectedBranch
Source§fn clone(&self) -> ProtectedBranch
fn clone(&self) -> ProtectedBranch
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 ProtectedBranch
impl Debug for ProtectedBranch
Source§impl Default for ProtectedBranch
impl Default for ProtectedBranch
Source§fn default() -> ProtectedBranch
fn default() -> ProtectedBranch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtectedBranch
impl<'de> Deserialize<'de> for ProtectedBranch
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 ProtectedBranch
impl PartialEq for ProtectedBranch
Source§impl Serialize for ProtectedBranch
impl Serialize for ProtectedBranch
impl StructuralPartialEq for ProtectedBranch
Auto Trait Implementations§
impl Freeze for ProtectedBranch
impl RefUnwindSafe for ProtectedBranch
impl Send for ProtectedBranch
impl Sync for ProtectedBranch
impl Unpin for ProtectedBranch
impl UnwindSafe for ProtectedBranch
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