Struct asyncgit::sync::CommitDetails
source · pub struct CommitDetails {
pub author: CommitSignature,
pub committer: Option<CommitSignature>,
pub message: Option<CommitMessage>,
pub hash: String,
}
Expand description
Fields§
§committer: Option<CommitSignature>
committer when differs to author
otherwise None
message: Option<CommitMessage>
§hash: String
Implementations§
source§impl CommitDetails
impl CommitDetails
sourcepub fn short_hash(&self) -> &str
pub fn short_hash(&self) -> &str
Trait Implementations§
source§impl Clone for CommitDetails
impl Clone for CommitDetails
source§fn clone(&self) -> CommitDetails
fn clone(&self) -> CommitDetails
Returns a copy 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 Default for CommitDetails
impl Default for CommitDetails
source§fn default() -> CommitDetails
fn default() -> CommitDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitDetails
impl RefUnwindSafe for CommitDetails
impl Send for CommitDetails
impl Sync for CommitDetails
impl Unpin for CommitDetails
impl UnwindSafe for CommitDetails
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<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
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