Struct EditRepoOption

Source
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

Source

pub fn new() -> EditRepoOption

EditRepoOption options when editing a repository’s properties

Trait Implementations§

Source§

impl Clone for EditRepoOption

Source§

fn clone(&self) -> EditRepoOption

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EditRepoOption

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EditRepoOption

Source§

fn default() -> EditRepoOption

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EditRepoOption

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for EditRepoOption

Source§

fn eq(&self, other: &EditRepoOption) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EditRepoOption

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EditRepoOption

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,