Struct git_cliff_core::github::GitHubContributor
source · pub struct GitHubContributor {
pub username: Option<String>,
pub pr_title: Option<String>,
pub pr_number: Option<i64>,
pub pr_labels: Vec<String>,
pub is_first_time: bool,
}
Available on crate feature
github
only.Expand description
Representation of a GitHub contributor.
Fields§
§username: Option<String>
Username.
pr_title: Option<String>
Title of the pull request.
pr_number: Option<i64>
The pull request that the user created.
pr_labels: Vec<String>
Labels of the pull request.
is_first_time: bool
Whether if the user contributed for the first time.
Trait Implementations§
source§impl Clone for GitHubContributor
impl Clone for GitHubContributor
source§fn clone(&self) -> GitHubContributor
fn clone(&self) -> GitHubContributor
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 Debug for GitHubContributor
impl Debug for GitHubContributor
source§impl Default for GitHubContributor
impl Default for GitHubContributor
source§fn default() -> GitHubContributor
fn default() -> GitHubContributor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GitHubContributor
impl<'de> Deserialize<'de> for GitHubContributor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GitHubContributor
impl Hash for GitHubContributor
source§impl PartialEq for GitHubContributor
impl PartialEq for GitHubContributor
source§fn eq(&self, other: &GitHubContributor) -> bool
fn eq(&self, other: &GitHubContributor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GitHubContributor
impl Serialize for GitHubContributor
impl Eq for GitHubContributor
impl StructuralPartialEq for GitHubContributor
Auto Trait Implementations§
impl Freeze for GitHubContributor
impl RefUnwindSafe for GitHubContributor
impl Send for GitHubContributor
impl Sync for GitHubContributor
impl Unpin for GitHubContributor
impl UnwindSafe for GitHubContributor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.