Struct forgejo_api::structs::Branch
source · pub struct Branch {
pub commit: Option<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<u64>,
pub status_check_contexts: Option<Vec<String>>,
pub user_can_merge: Option<bool>,
pub user_can_push: Option<bool>,
}Expand description
Branch represents a repository branch
Fields§
§commit: Option<PayloadCommit>§effective_branch_protection_name: Option<String>§enable_status_check: Option<bool>§name: Option<String>§protected: Option<bool>§required_approvals: Option<u64>§status_check_contexts: Option<Vec<String>>§user_can_merge: Option<bool>§user_can_push: Option<bool>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
source§impl PartialEq for Branch
impl PartialEq for Branch
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