Struct git_meta::GitCommitMeta[][src]

pub struct GitCommitMeta {
    pub id: String,
    pub message: Option<String>,
    pub epoch_time: Option<DateTime<Utc>>,
}

Fields

id: Stringmessage: Option<String>epoch_time: Option<DateTime<Utc>>

Implementations

impl GitCommitMeta[src]

pub fn new<I: ToHex + AsRef<[u8]>>(id: I) -> GitCommitMeta[src]

Trait bound for id is to convert the output from: git2::Commit.id().as_bytes() into a String

pub fn with_timestamp(mut self: Self, time: i64) -> Self[src]

time is intended to convert output from: git2::Commit.time().seconds() into Datetime`

pub fn with_message(mut self: Self, msg: Option<String>) -> Self[src]

Trait Implementations

impl Clone for GitCommitMeta[src]

impl Debug for GitCommitMeta[src]

impl PartialEq<GitCommitMeta> for GitCommitMeta[src]

impl StructuralPartialEq for GitCommitMeta[src]

Auto Trait Implementations

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<D> OwoColorize for D

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.