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