pub struct RepositoryPatch {Show 25 fields
pub name: Option<String>,
pub description: Option<String>,
pub homepage: Option<String>,
pub visibility: Option<Visibility>,
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>,
}Expand description
The managed subset of GitHub’s repository update body.
Every property is optional and an omitted property leaves the live value
alone, so Some(false) is written and None is not.
Fields§
§name: Option<String>The repository’s slug.
description: Option<String>The one-line summary shown on the repository’s landing page.
homepage: Option<String>The project home page.
visibility: Option<Visibility>Who can see the repository.
has_issues: Option<bool>Whether the issue tracker is enabled.
has_projects: Option<bool>Whether project boards are enabled.
has_wiki: Option<bool>Whether the wiki is enabled.
has_pull_requests: Option<bool>Whether pull requests are enabled.
has_discussions: Option<bool>Whether discussions are enabled.
pull_request_creation_policy: Option<PullRequestCreationPolicy>Who can open pull requests.
is_template: Option<bool>Whether the repository is a template.
default_branch: Option<String>The default branch.
allow_squash_merge: Option<bool>Whether merging is allowed to squash commits into one.
allow_merge_commit: Option<bool>Whether merging is allowed to create a merge commit.
allow_rebase_merge: Option<bool>Whether merging is allowed to rebase commits onto the base branch.
allow_auto_merge: Option<bool>Whether pull requests may merge automatically once checks pass.
delete_branch_on_merge: Option<bool>Whether the source branch is deleted automatically after merging.
allow_update_branch: Option<bool>Whether a pull request branch may be updated from the base branch.
squash_merge_commit_title: Option<SquashMergeCommitTitle>The title of a squash merge commit. Sent with the message.
squash_merge_commit_message: Option<SquashMergeCommitMessage>The message of a squash merge commit. Sent with the title.
merge_commit_title: Option<MergeCommitTitle>The title of a merge commit. Sent with the message.
merge_commit_message: Option<MergeCommitMessage>The message of a merge commit. Sent with the title.
archived: Option<bool>Whether the repository is archived.
allow_forking: Option<bool>Whether private forks are allowed.
web_commit_signoff_required: Option<bool>Whether web commits need a sign-off.
Implementations§
Trait Implementations§
Source§impl Clone for RepositoryPatch
impl Clone for RepositoryPatch
Source§fn clone(&self) -> RepositoryPatch
fn clone(&self) -> RepositoryPatch
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 RepositoryPatch
impl Debug for RepositoryPatch
Source§impl Default for RepositoryPatch
impl Default for RepositoryPatch
Source§fn default() -> RepositoryPatch
fn default() -> RepositoryPatch
impl Eq for RepositoryPatch
Source§impl<'ʄ> Facet<'ʄ> for RepositoryPatch
impl<'ʄ> Facet<'ʄ> for RepositoryPatch
Source§impl PartialEq for RepositoryPatch
impl PartialEq for RepositoryPatch
impl StructuralPartialEq for RepositoryPatch
Auto Trait Implementations§
impl Freeze for RepositoryPatch
impl RefUnwindSafe for RepositoryPatch
impl Send for RepositoryPatch
impl Sync for RepositoryPatch
impl Unpin for RepositoryPatch
impl UnsafeUnpin for RepositoryPatch
impl UnwindSafe for RepositoryPatch
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.