[][src]Struct git_object::owned::Commit

pub struct Commit {
    pub tree: Id,
    pub parents: SmallVec<[Id; 1]>,
    pub author: Signature,
    pub committer: Signature,
    pub encoding: Option<BString>,
    pub message: BString,
    pub extra_headers: Vec<(BString, BString)>,
}

Fields

tree: Idparents: SmallVec<[Id; 1]>

SHA1 of each parent commit. Empty for first commit in repository.

author: Signaturecommitter: Signatureencoding: Option<BString>

The name of the message encoding, otherwise UTF-8 should be assumed.

message: BStringextra_headers: Vec<(BString, BString)>

Parsed single or multi-line headers, ready for use.

Implementations

impl Commit[src]

pub fn extra_headers(
    &self
) -> ExtraHeaders<impl Iterator<Item = (&BStr, &BStr)>>
[src]

pub fn write_to(&self, out: impl Write) -> Result<()>[src]

Trait Implementations

impl Clone for Commit[src]

impl Debug for Commit[src]

impl<'de> Deserialize<'de> for Commit[src]

impl Eq for Commit[src]

impl From<Commit> for Object[src]

impl Hash for Commit[src]

impl<'_> Into<Commit> for Commit<'_>[src]

impl Ord for Commit[src]

impl PartialEq<Commit> for Commit[src]

impl PartialOrd<Commit> for Commit[src]

impl Serialize for Commit[src]

impl StructuralEq for Commit[src]

impl StructuralPartialEq for Commit[src]

impl TryFrom<Object> for Commit[src]

type Error = Object

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Commit

impl Send for Commit

impl Sync for Commit

impl Unpin for Commit

impl UnwindSafe for Commit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.