pub struct EditRepoBuilder { /* private fields */ }Implementations§
source§impl EditRepoBuilder
impl EditRepoBuilder
sourcepub fn allow_fast_forward_only_merge(
self,
allow_fast_forward_only_merge: impl Into<bool>,
) -> Self
pub fn allow_fast_forward_only_merge( self, allow_fast_forward_only_merge: impl Into<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: impl Into<bool>) -> Self
pub fn allow_manual_merge(self, allow_manual_merge: impl Into<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: impl Into<bool>) -> Self
pub fn allow_merge_commits(self, allow_merge_commits: impl Into<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: impl Into<bool>) -> Self
pub fn allow_rebase(self, allow_rebase: impl Into<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: impl Into<bool>,
) -> Self
pub fn allow_rebase_explicit( self, allow_rebase_explicit: impl Into<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: impl Into<bool>) -> Self
pub fn allow_rebase_update(self, allow_rebase_update: impl Into<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: impl Into<bool>) -> Self
pub fn allow_squash_merge(self, allow_squash_merge: impl Into<bool>) -> Self
Either true to allow squash-merging pull requests, or false to prevent squash-merging.
sourcepub fn archived(self, archived: impl Into<bool>) -> Self
pub fn archived(self, archived: impl Into<bool>) -> Self
Set to true to archive this repository.
sourcepub fn autodetect_manual_merge(
self,
autodetect_manual_merge: impl Into<bool>,
) -> Self
pub fn autodetect_manual_merge( self, autodetect_manual_merge: impl Into<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: impl Into<bool>,
) -> Self
pub fn default_allow_maintainer_edit( self, default_allow_maintainer_edit: impl Into<bool>, ) -> Self
Set to true to allow edits from maintainers by default
sourcepub fn default_branch(self, default_branch: impl Into<String>) -> Self
pub fn default_branch(self, default_branch: impl Into<String>) -> Self
Sets the default branch for this repository.
sourcepub fn default_delete_branch_after_merge(
self,
default_delete_branch_after_merge: impl Into<bool>,
) -> Self
pub fn default_delete_branch_after_merge( self, default_delete_branch_after_merge: impl Into<bool>, ) -> Self
Set to true to delete pr branch after merge by default
sourcepub fn default_merge_style(self, default_merge_style: impl Into<String>) -> Self
pub fn default_merge_style(self, default_merge_style: impl Into<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: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
A short description of the repository.
sourcepub fn enable_prune(self, enable_prune: impl Into<bool>) -> Self
pub fn enable_prune(self, enable_prune: impl Into<bool>) -> Self
Enable prune - remove obsolete remote-tracking references when mirroring
sourcepub fn external_tracker(
self,
external_tracker: impl Into<ExternalTracker>,
) -> Self
pub fn external_tracker( self, external_tracker: impl Into<ExternalTracker>, ) -> Self
ExternalTracker represents settings for external tracker
sourcepub fn external_wiki(self, external_wiki: impl Into<ExternalWiki>) -> Self
pub fn external_wiki(self, external_wiki: impl Into<ExternalWiki>) -> Self
ExternalWiki represents setting for external wiki
sourcepub fn has_actions(self, has_actions: impl Into<bool>) -> Self
pub fn has_actions(self, has_actions: impl Into<bool>) -> Self
Either true to enable actions unit, or false to disable them.
sourcepub fn has_issues(self, has_issues: impl Into<bool>) -> Self
pub fn has_issues(self, has_issues: impl Into<bool>) -> Self
Either true to enable issues for this repository or false to disable them.
sourcepub fn has_packages(self, has_packages: impl Into<bool>) -> Self
pub fn has_packages(self, has_packages: impl Into<bool>) -> Self
Either true to enable packages unit, or false to disable them.
sourcepub fn has_projects(self, has_projects: impl Into<bool>) -> Self
pub fn has_projects(self, has_projects: impl Into<bool>) -> Self
Either true to enable project unit, or false to disable them.
sourcepub fn has_pull_requests(self, has_pull_requests: impl Into<bool>) -> Self
pub fn has_pull_requests(self, has_pull_requests: impl Into<bool>) -> Self
Either true to allow pull requests, or false to prevent pull request.
sourcepub fn has_releases(self, has_releases: impl Into<bool>) -> Self
pub fn has_releases(self, has_releases: impl Into<bool>) -> Self
Either true to enable releases unit, or false to disable them.
sourcepub fn has_wiki(self, has_wiki: impl Into<bool>) -> Self
pub fn has_wiki(self, has_wiki: impl Into<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: impl Into<bool>,
) -> Self
pub fn ignore_whitespace_conflicts( self, ignore_whitespace_conflicts: impl Into<bool>, ) -> Self
Either true to ignore whitespace for conflicts, or false to not ignore whitespace.
sourcepub fn mirror_interval(self, mirror_interval: impl Into<String>) -> Self
pub fn mirror_interval(self, mirror_interval: impl Into<String>) -> Self
Set to a string like 8h30m0s to set the mirror interval time
sourcepub fn private(self, private: impl Into<bool>) -> Self
pub fn private(self, private: impl Into<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: impl Into<String>) -> Self
pub fn projects_mode(self, projects_mode: impl Into<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)