pub trait RemoteCommit: DynClone {
// Required methods
fn id(&self) -> String;
fn username(&self) -> Option<String>;
fn timestamp(&self) -> Option<i64>;
// Provided method
fn convert_to_unix_timestamp(&self, date: &str) -> i64 { ... }
}
Available on crate feature
remote
only.Expand description
Trait for handling remote commits.
Required Methods§
Provided Methods§
Sourcefn convert_to_unix_timestamp(&self, date: &str) -> i64
fn convert_to_unix_timestamp(&self, date: &str) -> i64
Convert date in RFC3339 format to unix timestamp
Implementors§
impl RemoteCommit for BitbucketCommit
Available on crate feature
bitbucket
only.impl RemoteCommit for GiteaCommit
Available on crate feature
gitea
only.impl RemoteCommit for GitHubCommit
Available on crate feature
github
only.impl RemoteCommit for GitLabCommit
Available on crate feature
gitlab
only.