pub struct Repository {Show 26 fields
pub description: Option<String>,
pub homepage: Option<String>,
pub visibility: Option<Visibility>,
pub topics: Option<Vec<String>>,
pub has_issues: Option<bool>,
pub has_projects: Option<bool>,
pub has_wiki: Option<bool>,
pub has_pull_requests: Option<bool>,
pub has_discussions: Option<bool>,
pub pull_request_creation_policy: Option<PullRequestCreationPolicy>,
pub is_template: Option<bool>,
pub default_branch: Option<String>,
pub allow_squash_merge: Option<bool>,
pub allow_merge_commit: Option<bool>,
pub allow_rebase_merge: Option<bool>,
pub allow_auto_merge: Option<bool>,
pub delete_branch_on_merge: Option<bool>,
pub allow_update_branch: Option<bool>,
pub squash_merge_commit_title: Option<SquashMergeCommitTitle>,
pub squash_merge_commit_message: Option<SquashMergeCommitMessage>,
pub merge_commit_title: Option<MergeCommitTitle>,
pub merge_commit_message: Option<MergeCommitMessage>,
pub archived: Option<bool>,
pub allow_forking: Option<bool>,
pub web_commit_signoff_required: Option<bool>,
pub immutable_releases: Option<bool>,
}Expand description
Desired settings for a repository.
Fields§
§description: Option<String>The one-line summary shown on the repository’s landing page. Null leaves it alone.
homepage: Option<String>The project home page. Null leaves it alone.
visibility: Option<Visibility>Who can see the repository. Null leaves it alone.
topics: Option<Vec<String>>Topic labels used for discovery and filtering. Null leaves it alone.
has_issues: Option<bool>Whether the issue tracker is enabled. Null leaves it alone.
has_projects: Option<bool>Whether project boards are enabled. Null leaves it alone.
has_wiki: Option<bool>Whether the wiki is enabled. Null leaves it alone.
has_pull_requests: Option<bool>Whether pull requests are enabled. Null leaves it alone.
has_discussions: Option<bool>Whether discussions are enabled. Null leaves it alone.
pull_request_creation_policy: Option<PullRequestCreationPolicy>Who can open pull requests. Null leaves it alone.
is_template: Option<bool>Whether the repository is a template. Null leaves it alone.
default_branch: Option<String>The default branch. Null leaves it alone.
allow_squash_merge: Option<bool>Whether merging is allowed to squash commits into one. Null leaves it alone.
allow_merge_commit: Option<bool>Whether merging is allowed to create a merge commit. Null leaves it alone.
allow_rebase_merge: Option<bool>Whether merging is allowed to rebase commits onto the base branch. Null leaves it alone.
allow_auto_merge: Option<bool>Whether pull requests may merge automatically once checks pass. Null leaves it alone.
delete_branch_on_merge: Option<bool>Whether the source branch is deleted automatically after merging. Null leaves it alone.
allow_update_branch: Option<bool>Whether a pull request branch may be updated from the base branch. Null leaves it alone.
squash_merge_commit_title: Option<SquashMergeCommitTitle>The title of a squash merge commit. Null leaves it alone.
squash_merge_commit_message: Option<SquashMergeCommitMessage>The message of a squash merge commit. Null leaves it alone.
merge_commit_title: Option<MergeCommitTitle>The title of a merge commit. Null leaves it alone.
merge_commit_message: Option<MergeCommitMessage>The message of a merge commit. Null leaves it alone.
archived: Option<bool>Whether the repository is archived. Null leaves it alone.
allow_forking: Option<bool>Whether private forks are allowed. Null leaves it alone.
web_commit_signoff_required: Option<bool>Whether web commits need a sign-off. Null leaves it alone.
immutable_releases: Option<bool>Whether published releases become immutable. Null leaves it alone.
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
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.