pub struct EditRepoBuilder { /* private fields */ }
Implementations§
source§impl EditRepoBuilder
impl EditRepoBuilder
sourcepub fn allow_fast_forward_only_merge(
self,
allow_fast_forward_only_merge: bool,
) -> Self
pub fn allow_fast_forward_only_merge( self, allow_fast_forward_only_merge: bool, ) -> Self
Either true
to allow fast-forward-only merging pull requests, or false
to prevent fast-forward-only merging.
sourcepub fn allow_manual_merge(self, allow_manual_merge: bool) -> Self
pub fn allow_manual_merge(self, allow_manual_merge: bool) -> Self
Either true
to allow mark pr as merged manually, or false
to prevent it.
sourcepub fn allow_merge_commits(self, allow_merge_commits: bool) -> Self
pub fn allow_merge_commits(self, allow_merge_commits: bool) -> Self
Either true
to allow merging pull requests with a merge commit, or false
to prevent merging pull requests with merge commits.
sourcepub fn allow_rebase(self, allow_rebase: bool) -> Self
pub fn allow_rebase(self, allow_rebase: bool) -> Self
Either true
to allow rebase-merging pull requests, or false
to prevent rebase-merging.
sourcepub fn allow_rebase_explicit(self, allow_rebase_explicit: bool) -> Self
pub fn allow_rebase_explicit(self, allow_rebase_explicit: bool) -> Self
Either true
to allow rebase with explicit merge commits (–no-ff), or false
to prevent rebase with explicit merge commits.
sourcepub fn allow_rebase_update(self, allow_rebase_update: bool) -> Self
pub fn allow_rebase_update(self, allow_rebase_update: bool) -> Self
Either true
to allow updating pull request branch by rebase, or false
to prevent it.
sourcepub fn allow_squash_merge(self, allow_squash_merge: bool) -> Self
pub fn allow_squash_merge(self, allow_squash_merge: bool) -> Self
Either true
to allow squash-merging pull requests, or false
to prevent squash-merging.
sourcepub fn autodetect_manual_merge(self, autodetect_manual_merge: bool) -> Self
pub fn autodetect_manual_merge(self, autodetect_manual_merge: bool) -> Self
Either true
to enable AutodetectManualMerge, or false
to prevent it. Note: In some special cases, misjudgments can occur.
sourcepub fn default_allow_maintainer_edit(
self,
default_allow_maintainer_edit: bool,
) -> Self
pub fn default_allow_maintainer_edit( self, default_allow_maintainer_edit: bool, ) -> Self
Set to true
to allow edits from maintainers by default
sourcepub fn default_branch(self, default_branch: String) -> Self
pub fn default_branch(self, default_branch: String) -> Self
Sets the default branch for this repository.
sourcepub fn default_delete_branch_after_merge(
self,
default_delete_branch_after_merge: bool,
) -> Self
pub fn default_delete_branch_after_merge( self, default_delete_branch_after_merge: bool, ) -> Self
Set to true
to delete pr branch after merge by default
sourcepub fn default_merge_style(self, default_merge_style: String) -> Self
pub fn default_merge_style(self, default_merge_style: String) -> Self
Set to a merge style to be used by this repository: “merge”, “rebase”, “rebase-merge”, “squash”, or “fast-forward-only”.
sourcepub fn description(self, description: String) -> Self
pub fn description(self, description: String) -> Self
A short description of the repository.
sourcepub fn enable_prune(self, enable_prune: bool) -> Self
pub fn enable_prune(self, enable_prune: bool) -> Self
Enable prune - remove obsolete remote-tracking references when mirroring
sourcepub fn has_actions(self, has_actions: bool) -> Self
pub fn has_actions(self, has_actions: bool) -> Self
Either true
to enable actions unit, or false
to disable them.
sourcepub fn has_issues(self, has_issues: bool) -> Self
pub fn has_issues(self, has_issues: bool) -> Self
Either true
to enable issues for this repository or false
to disable them.
sourcepub fn has_packages(self, has_packages: bool) -> Self
pub fn has_packages(self, has_packages: bool) -> Self
Either true
to enable packages unit, or false
to disable them.
sourcepub fn has_projects(self, has_projects: bool) -> Self
pub fn has_projects(self, has_projects: bool) -> Self
Either true
to enable project unit, or false
to disable them.
sourcepub fn has_pull_requests(self, has_pull_requests: bool) -> Self
pub fn has_pull_requests(self, has_pull_requests: bool) -> Self
Either true
to allow pull requests, or false
to prevent pull request.
sourcepub fn has_releases(self, has_releases: bool) -> Self
pub fn has_releases(self, has_releases: bool) -> Self
Either true
to enable releases unit, or false
to disable them.
sourcepub fn has_wiki(self, has_wiki: bool) -> Self
pub fn has_wiki(self, has_wiki: bool) -> Self
Either true
to enable the wiki for this repository or false
to disable it.
sourcepub fn ignore_whitespace_conflicts(
self,
ignore_whitespace_conflicts: bool,
) -> Self
pub fn ignore_whitespace_conflicts( self, ignore_whitespace_conflicts: bool, ) -> Self
Either true
to ignore whitespace for conflicts, or false
to not ignore whitespace.
sourcepub fn mirror_interval(self, mirror_interval: String) -> Self
pub fn mirror_interval(self, mirror_interval: String) -> Self
Set to a string like 8h30m0s
to set the mirror interval time
sourcepub fn private(self, private: bool) -> Self
pub fn private(self, private: bool) -> Self
Either true
to make the repository private or false
to make it public.
NOTE: you will get a 422 error if the organization restricts changing repository visibility To organization owners and a non-owner tries to change the value of private.
sourcepub fn projects_mode(self, projects_mode: String) -> Self
pub fn projects_mode(self, projects_mode: String) -> Self
repo
to only allow repo-level projects, owner
to only allow owner projects, all
to allow both.
Trait Implementations§
source§impl Clone for EditRepoBuilder
impl Clone for EditRepoBuilder
source§fn clone(&self) -> EditRepoBuilder
fn clone(&self) -> EditRepoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EditRepoBuilder
impl Debug for EditRepoBuilder
source§impl PartialEq for EditRepoBuilder
impl PartialEq for EditRepoBuilder
source§impl Serialize for EditRepoBuilder
impl Serialize for EditRepoBuilder
impl StructuralPartialEq for EditRepoBuilder
Auto Trait Implementations§
impl Freeze for EditRepoBuilder
impl RefUnwindSafe for EditRepoBuilder
impl Send for EditRepoBuilder
impl Sync for EditRepoBuilder
impl Unpin for EditRepoBuilder
impl UnwindSafe for EditRepoBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)