pub struct CommitMeta {
pub parents: Vec<String>,
pub author_login: Option<String>,
pub committer_login: Option<String>,
}Expand description
Read behind_by out of a compare response.
A missing field is an error, not zero: treating an unreadable response as “head is up to date” would let a stale PR merge A commit’s parents, first parent first, and the GitHub accounts behind it
Fields§
§parents: Vec<String>§committer_login: Option<String>Trait Implementations§
Source§impl Debug for CommitMeta
impl Debug for CommitMeta
Source§impl Default for CommitMeta
impl Default for CommitMeta
Source§impl PartialEq for CommitMeta
impl PartialEq for CommitMeta
impl StructuralPartialEq for CommitMeta
Auto Trait Implementations§
impl Freeze for CommitMeta
impl RefUnwindSafe for CommitMeta
impl Send for CommitMeta
impl Sync for CommitMeta
impl Unpin for CommitMeta
impl UnsafeUnpin for CommitMeta
impl UnwindSafe for CommitMeta
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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