pub struct EditRepoOption {Show 32 fields
pub allow_fast_forward_only_merge: Option<bool>,
pub allow_manual_merge: Option<bool>,
pub allow_merge_commits: Option<bool>,
pub allow_rebase: Option<bool>,
pub allow_rebase_explicit: Option<bool>,
pub allow_rebase_update: Option<bool>,
pub allow_squash_merge: Option<bool>,
pub archived: Option<bool>,
pub autodetect_manual_merge: Option<bool>,
pub default_allow_maintainer_edit: Option<bool>,
pub default_branch: Option<String>,
pub default_delete_branch_after_merge: Option<bool>,
pub default_merge_style: Option<String>,
pub description: Option<String>,
pub enable_prune: Option<bool>,
pub external_tracker: Option<Box<ExternalTracker>>,
pub external_wiki: Option<Box<ExternalWiki>>,
pub has_actions: Option<bool>,
pub has_issues: Option<bool>,
pub has_packages: Option<bool>,
pub has_projects: Option<bool>,
pub has_pull_requests: Option<bool>,
pub has_releases: Option<bool>,
pub has_wiki: Option<bool>,
pub ignore_whitespace_conflicts: Option<bool>,
pub internal_tracker: Option<Box<InternalTracker>>,
pub mirror_interval: Option<String>,
pub name: Option<String>,
pub private: Option<bool>,
pub projects_mode: Option<String>,
pub template: Option<bool>,
pub website: Option<String>,
}Expand description
EditRepoOption : EditRepoOption options when editing a repository’s properties
Fields§
§allow_fast_forward_only_merge: Option<bool>either true to allow fast-forward-only merging pull requests, or false to prevent fast-forward-only merging.
allow_manual_merge: Option<bool>either true to allow mark pr as merged manually, or false to prevent it.
allow_merge_commits: Option<bool>either true to allow merging pull requests with a merge commit, or false to prevent merging pull requests with merge commits.
allow_rebase: Option<bool>either true to allow rebase-merging pull requests, or false to prevent rebase-merging.
allow_rebase_explicit: Option<bool>either true to allow rebase with explicit merge commits (–no-ff), or false to prevent rebase with explicit merge commits.
allow_rebase_update: Option<bool>either true to allow updating pull request branch by rebase, or false to prevent it.
allow_squash_merge: Option<bool>either true to allow squash-merging pull requests, or false to prevent squash-merging.
archived: Option<bool>set to true to archive this repository.
autodetect_manual_merge: Option<bool>either true to enable AutodetectManualMerge, or false to prevent it. Note: In some special cases, misjudgments can occur.
default_allow_maintainer_edit: Option<bool>set to true to allow edits from maintainers by default
default_branch: Option<String>sets the default branch for this repository.
default_delete_branch_after_merge: Option<bool>set to true to delete pr branch after merge by default
default_merge_style: Option<String>set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only".
description: Option<String>a short description of the repository.
enable_prune: Option<bool>enable prune - remove obsolete remote-tracking references when mirroring
external_tracker: Option<Box<ExternalTracker>>§external_wiki: Option<Box<ExternalWiki>>§has_actions: Option<bool>either true to enable actions unit, or false to disable them.
has_issues: Option<bool>either true to enable issues for this repository or false to disable them.
has_packages: Option<bool>either true to enable packages unit, or false to disable them.
has_projects: Option<bool>either true to enable project unit, or false to disable them.
has_pull_requests: Option<bool>either true to allow pull requests, or false to prevent pull request.
has_releases: Option<bool>either true to enable releases unit, or false to disable them.
has_wiki: Option<bool>either true to enable the wiki for this repository or false to disable it.
ignore_whitespace_conflicts: Option<bool>either true to ignore whitespace for conflicts, or false to not ignore whitespace.
internal_tracker: Option<Box<InternalTracker>>§mirror_interval: Option<String>set to a string like 8h30m0s to set the mirror interval time
name: Option<String>name of the repository
private: Option<bool>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.
projects_mode: Option<String>repo to only allow repo-level projects, owner to only allow owner projects, all to allow both.
template: Option<bool>either true to make this repository a template or false to make it a normal repository
website: Option<String>a URL with more information about the repository.
Implementations§
Source§impl EditRepoOption
impl EditRepoOption
Sourcepub fn new() -> EditRepoOption
pub fn new() -> EditRepoOption
EditRepoOption options when editing a repository’s properties
Trait Implementations§
Source§impl Clone for EditRepoOption
impl Clone for EditRepoOption
Source§fn clone(&self) -> EditRepoOption
fn clone(&self) -> EditRepoOption
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditRepoOption
impl Debug for EditRepoOption
Source§impl Default for EditRepoOption
impl Default for EditRepoOption
Source§fn default() -> EditRepoOption
fn default() -> EditRepoOption
Source§impl<'de> Deserialize<'de> for EditRepoOption
impl<'de> Deserialize<'de> for EditRepoOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EditRepoOption
impl PartialEq for EditRepoOption
Source§impl Serialize for EditRepoOption
impl Serialize for EditRepoOption
impl StructuralPartialEq for EditRepoOption
Auto Trait Implementations§
impl Freeze for EditRepoOption
impl RefUnwindSafe for EditRepoOption
impl Send for EditRepoOption
impl Sync for EditRepoOption
impl Unpin for EditRepoOption
impl UnwindSafe for EditRepoOption
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)