pub struct Repository {Show 28 fields
pub name: String,
pub description: String,
pub homepage: String,
pub visibility: Option<Visibility>,
pub topics: Vec<String>,
pub archived: bool,
pub default_branch: Option<String>,
pub allow_merge_commit: bool,
pub allow_rebase_merge: bool,
pub allow_squash_merge: bool,
pub allow_auto_merge: bool,
pub delete_branch_on_merge: bool,
pub allow_update_branch: bool,
pub has_issues: bool,
pub has_projects: bool,
pub has_wiki: bool,
pub has_pull_requests: bool,
pub has_discussions: bool,
pub pull_request_creation_policy: PullRequestCreationPolicy,
pub is_template: bool,
pub squash_merge_commit_title: SquashMergeCommitTitle,
pub squash_merge_commit_message: SquashMergeCommitMessage,
pub merge_commit_title: MergeCommitTitle,
pub merge_commit_message: MergeCommitMessage,
pub allow_forking: Option<bool>,
pub web_commit_signoff_required: bool,
pub security_and_analysis: Analysis,
pub permissions: Option<ViewerPermissions>,
}Expand description
Fields returned by GitHub’s repository endpoint.
Fields§
§name: StringThe repository’s slug.
description: StringThe one-line summary shown on the repository’s landing page, empty when unset.
homepage: StringThe project home page, empty when unset.
visibility: Option<Visibility>Who can see the repository.
topics: Vec<String>Topic labels used for discovery and filtering.
archived: boolWhether the repository rejects writes because it is archived.
default_branch: Option<String>The branch rulesets and checks default to, when set.
allow_merge_commit: boolWhether merging is allowed to create a merge commit.
allow_rebase_merge: boolWhether merging is allowed to rebase commits onto the base branch.
allow_squash_merge: boolWhether merging is allowed to squash commits into one.
allow_auto_merge: boolWhether pull requests may merge automatically once checks pass.
delete_branch_on_merge: boolWhether the source branch is deleted automatically after merging.
allow_update_branch: boolWhether a pull request branch may be updated by rebasing it.
has_issues: boolWhether the issue tracker is enabled.
has_projects: boolWhether project boards are enabled.
has_wiki: boolWhether the wiki is enabled.
has_pull_requests: boolWhether pull requests are enabled.
has_discussions: boolWhether discussions are enabled.
pull_request_creation_policy: PullRequestCreationPolicyWho can open pull requests.
is_template: boolWhether the repository is a template.
squash_merge_commit_title: SquashMergeCommitTitleThe title of a squash merge commit.
squash_merge_commit_message: SquashMergeCommitMessageThe message of a squash merge commit.
merge_commit_title: MergeCommitTitleThe title of a merge commit.
merge_commit_message: MergeCommitMessageThe message of a merge commit.
allow_forking: Option<bool>Whether private forks are allowed, when GitHub reports it.
web_commit_signoff_required: boolWhether web commits need a sign-off.
security_and_analysis: AnalysisThe security features GitHub reports. Absent features are unreadable.
permissions: Option<ViewerPermissions>What the authenticated caller may do. Absent for anonymous reads.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
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 Repository
impl Debug for Repository
Source§impl Default for Repository
impl Default for Repository
Source§fn default() -> Repository
fn default() -> Repository
impl Eq for Repository
Source§impl<'ʄ> Facet<'ʄ> for Repository
impl<'ʄ> Facet<'ʄ> for Repository
Source§impl PartialEq for Repository
impl PartialEq for Repository
impl StructuralPartialEq for Repository
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnsafeUnpin for Repository
impl UnwindSafe for Repository
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.