pub struct CommunityProfile {
pub checked: bool,
pub unavailable_reason: Option<String>,
pub readme: Presence,
pub license: Presence,
pub contributing: Presence,
pub code_of_conduct: Presence,
pub issue_template: Presence,
pub pull_request_template: Presence,
pub security: Presence,
}Expand description
GitHub’s own community-standards view of the repo — the parsed
gh api repos/<owner>/<repo>/community/profile files block.
Supplementary evidence alongside the filesystem-derived gaps: GitHub also
recognizes health files under .github/ and docs/, so a Present here
can corroborate a file the root-level probe did not see. When the lookup
could not run (Self::checked is false), every field is
Presence::Unknown — the outage is never read as “absent”.
Fields§
§checked: boolWhether the read-only gh api …/community/profile call succeeded. When
false, every field below is Presence::Unknown.
A short reason when Self::checked is false (no GitHub remote, gh
unavailable, API error), else null.
readme: PresenceWhether GitHub sees a README.
license: PresenceWhether GitHub sees a LICENSE.
contributing: PresenceWhether GitHub sees a CONTRIBUTING file.
code_of_conduct: PresenceWhether GitHub sees a code of conduct.
issue_template: PresenceWhether GitHub sees an issue template.
pull_request_template: PresenceWhether GitHub sees a pull-request template.
security: PresenceWhether GitHub sees a SECURITY policy.
Trait Implementations§
Source§impl Clone for CommunityProfile
impl Clone for CommunityProfile
Source§fn clone(&self) -> CommunityProfile
fn clone(&self) -> CommunityProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommunityProfile
impl Debug for CommunityProfile
impl Eq for CommunityProfile
Source§impl PartialEq for CommunityProfile
impl PartialEq for CommunityProfile
Source§impl Serialize for CommunityProfile
impl Serialize for CommunityProfile
impl StructuralPartialEq for CommunityProfile
Auto Trait Implementations§
impl Freeze for CommunityProfile
impl RefUnwindSafe for CommunityProfile
impl Send for CommunityProfile
impl Sync for CommunityProfile
impl Unpin for CommunityProfile
impl UnsafeUnpin for CommunityProfile
impl UnwindSafe for CommunityProfile
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
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
key and return true if they are equal.