[][src]Trait last_git_commit::Author

pub trait Author {
    fn name(&self) -> String;
fn email(&self) -> String; }

Required methods

fn name(&self) -> String

fn email(&self) -> String

Loading content...

Implementors

impl Author for LGCAuthor[src]

fn name(&self) -> String[src]

Get the name of the commit author.

Examples

extern crate last_git_commit;
use last_git_commit::{LastGitCommit, Author};

let name = LastGitCommit::new(None, None).unwrap().author.name();

println!("Name: {}", name);

fn email(&self) -> String[src]

Get the email of the commit author.

Examples

extern crate last_git_commit;
use last_git_commit::{LastGitCommit, Author};

let email = LastGitCommit::new(None, None).unwrap().author.email();

println!("Email: {}", email);
Loading content...