Struct EditRepoBuilder

Source
pub struct EditRepoBuilder { /* private fields */ }

Implementations§

Source§

impl EditRepoBuilder

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn archived(self, archived: impl Into<bool>) -> Self

Set to true to archive this repository.

Source

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.

Source

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

Source

pub fn default_branch(self, default_branch: impl Into<String>) -> Self

Sets the default branch for this repository.

Source

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

Source

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”.

Source

pub fn description(self, description: impl Into<String>) -> Self

A short description of the repository.

Source

pub fn enable_prune(self, enable_prune: impl Into<bool>) -> Self

Enable prune - remove obsolete remote-tracking references when mirroring

Source

pub fn external_tracker( self, external_tracker: impl Into<ExternalTracker>, ) -> Self

ExternalTracker represents settings for external tracker

Source

pub fn external_wiki(self, external_wiki: impl Into<ExternalWiki>) -> Self

ExternalWiki represents setting for external wiki

Source

pub fn has_actions(self, has_actions: impl Into<bool>) -> Self

Either true to enable actions unit, or false to disable them.

Source

pub fn has_issues(self, has_issues: impl Into<bool>) -> Self

Either true to enable issues for this repository or false to disable them.

Source

pub fn has_packages(self, has_packages: impl Into<bool>) -> Self

Either true to enable packages unit, or false to disable them.

Source

pub fn has_projects(self, has_projects: impl Into<bool>) -> Self

Either true to enable project unit, or false to disable them.

Source

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.

Source

pub fn has_releases(self, has_releases: impl Into<bool>) -> Self

Either true to enable releases unit, or false to disable them.

Source

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.

Source

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.

Source

pub fn mirror_interval(self, mirror_interval: impl Into<String>) -> Self

Set to a string like 8h30m0s to set the mirror interval time

Source

pub fn name(self, name: impl Into<String>) -> Self

Name of the repository

Source

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.

Source

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.

Source

pub fn template(self, template: impl Into<bool>) -> Self

Either true to make this repository a template or false to make it a normal repository

Source

pub fn website(self, website: impl Into<String>) -> Self

A URL with more information about the repository.

Source§

impl EditRepoBuilder

Source

pub fn new(owner: impl ToString, repo: impl ToString) -> Self

Source

pub async fn send(&self, client: &Client) -> Result<Repository>

Send the request to edit the repository.

Trait Implementations§

Source§

impl Clone for EditRepoBuilder

Source§

fn clone(&self) -> EditRepoBuilder

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EditRepoBuilder

Source§

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

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

impl PartialEq for EditRepoBuilder

Source§

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

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

const 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 EditRepoBuilder

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 EditRepoBuilder

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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> ErasedDestructor for T
where T: 'static,