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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more