pub struct Branch {
pub commit: Option<Box<PayloadCommit>>,
pub effective_branch_protection_name: Option<String>,
pub enable_status_check: Option<bool>,
pub name: Option<String>,
pub protected: Option<bool>,
pub required_approvals: Option<i64>,
pub status_check_contexts: Option<Vec<String>>,
pub user_can_merge: Option<bool>,
pub user_can_push: Option<bool>,
}
Expand description
Branch : Branch represents a repository branch
Fields§
§commit: Option<Box<PayloadCommit>>
§effective_branch_protection_name: Option<String>
§enable_status_check: Option<bool>
§name: Option<String>
§protected: Option<bool>
§required_approvals: Option<i64>
§status_check_contexts: Option<Vec<String>>
§user_can_merge: Option<bool>
§user_can_push: Option<bool>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Branch
impl<'de> Deserialize<'de> for Branch
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 Branch
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
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