pub struct BranchWithProtection {
pub name: String,
pub commit: Box<Commit>,
pub _links: Box<BranchWithProtectionLinks>,
pub protected: bool,
pub protection: Box<BranchProtection>,
pub protection_url: String,
pub pattern: Option<String>,
pub required_approving_review_count: Option<i32>,
}
Expand description
BranchWithProtection : Branch With Protection
Fields§
§name: String
§commit: Box<Commit>
§_links: Box<BranchWithProtectionLinks>
§protected: bool
§protection: Box<BranchProtection>
§protection_url: String
§pattern: Option<String>
§required_approving_review_count: Option<i32>
Implementations§
Source§impl BranchWithProtection
impl BranchWithProtection
Sourcepub fn new(
name: String,
commit: Commit,
_links: BranchWithProtectionLinks,
protected: bool,
protection: BranchProtection,
protection_url: String,
) -> BranchWithProtection
pub fn new( name: String, commit: Commit, _links: BranchWithProtectionLinks, protected: bool, protection: BranchProtection, protection_url: String, ) -> BranchWithProtection
Branch With Protection
Trait Implementations§
Source§impl Clone for BranchWithProtection
impl Clone for BranchWithProtection
Source§fn clone(&self) -> BranchWithProtection
fn clone(&self) -> BranchWithProtection
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 BranchWithProtection
impl Debug for BranchWithProtection
Source§impl Default for BranchWithProtection
impl Default for BranchWithProtection
Source§fn default() -> BranchWithProtection
fn default() -> BranchWithProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchWithProtection
impl<'de> Deserialize<'de> for BranchWithProtection
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 BranchWithProtection
impl PartialEq for BranchWithProtection
Source§impl Serialize for BranchWithProtection
impl Serialize for BranchWithProtection
impl StructuralPartialEq for BranchWithProtection
Auto Trait Implementations§
impl Freeze for BranchWithProtection
impl RefUnwindSafe for BranchWithProtection
impl Send for BranchWithProtection
impl Sync for BranchWithProtection
impl Unpin for BranchWithProtection
impl UnwindSafe for BranchWithProtection
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