#[non_exhaustive]pub struct Contributions {
pub commits: BTreeMap<String, u64>,
pub private_repos: BTreeSet<String>,
pub reviewed: Vec<ItemNode>,
pub unreadable: Unreadable,
pub capped: bool,
pub restricted: u64,
}Expand description
What a user contributed over a period, as GitHub’s contribution
graph counts it: commits on a repository’s default branch (or
gh-pages), and pull requests reviewed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commits: BTreeMap<String, u64>Per repository (owner/name), the commits made.
private_repos: BTreeSet<String>The repositories among them, and among reviewed’s, that are
private.
reviewed: Vec<ItemNode>The pull requests reviewed, each once.
unreadable: UnreadableReviews left out because the token cannot read them, and GitHub’s reasons.
capped: boolWhether a single day named the most repositories GitHub gives (100), so some may be missing.
restricted: u64Contributions GitHub counts in private repositories without naming them. An organization that refuses the token’s kind (classic personal access tokens, for some) leaves its contributions out altogether, uncounted.
Trait Implementations§
Source§impl Clone for Contributions
impl Clone for Contributions
Source§impl Debug for Contributions
impl Debug for Contributions
Source§impl Default for Contributions
impl Default for Contributions
impl Eq for Contributions
Source§impl PartialEq for Contributions
impl PartialEq for Contributions
impl StructuralPartialEq for Contributions
Auto Trait Implementations§
impl Forget for Contributions
impl Freeze for Contributions
impl Move for Contributions
impl RefUnwindSafe for Contributions
impl Send for Contributions
impl Sync for Contributions
impl Unpin for Contributions
impl UnsafeUnpin for Contributionswhere
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<ItemNode>: UnsafeUnpin,
impl UnwindSafe for Contributionswhere
BTreeMap<String, u64>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
RawVecInner: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.