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