pub struct Branch {
pub name: String,
pub upstream: Option<String>,
pub upstream_track: String,
pub committed_at: i64,
pub relative_date: String,
pub subject: String,
pub pr_url: Option<String>,
pub detail: Option<String>,
pub saved: bool,
pub protections: Vec<Protection>,
pub decision: Decision,
}Fields§
§name: String§upstream: Option<String>§upstream_track: String§committed_at: i64§relative_date: String§subject: String§pr_url: Option<String>§detail: Option<String>§saved: bool§protections: Vec<Protection>§decision: DecisionImplementations§
Source§impl Branch
impl Branch
pub fn is_protected(&self) -> bool
pub fn is_deletable(&self) -> bool
pub fn section(&self) -> BranchSection
pub fn display_name(&self) -> String
pub fn upstream_remote(&self) -> Option<&str>
pub fn upstream_branch_name(&self) -> Option<&str>
Trait Implementations§
impl Eq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more