Struct UpdateARepository

Source
pub struct UpdateARepository<'a> {
Show 27 fields pub owner: &'a str, pub repo: &'a str, pub name: Option<&'a str>, pub description: Option<&'a str>, pub homepage: Option<&'a str>, pub private: Option<bool>, pub visibility: Option<&'a str>, pub security_and_analysis: Option<&'a str>, pub has_issues: Option<bool>, pub has_projects: Option<bool>, pub has_wiki: Option<bool>, pub is_template: Option<bool>, pub default_branch: Option<&'a str>, pub allow_squash_merge: Option<bool>, pub allow_merge_commit: Option<bool>, pub allow_rebase_merge: Option<bool>, pub allow_auto_merge: Option<bool>, pub delete_branch_on_merge: Option<bool>, pub allow_update_branch: Option<bool>, pub use_squash_pr_title_as_default: Option<bool>, pub squash_merge_commit_title: Option<&'a str>, pub squash_merge_commit_message: Option<&'a str>, pub merge_commit_title: Option<&'a str>, pub merge_commit_message: Option<&'a str>, pub archived: Option<bool>, pub allow_forking: Option<bool>, pub web_commit_signoff_required: Option<bool>,
}
Expand description

Fields§

§owner: &'a str§repo: &'a str§name: Option<&'a str>§description: Option<&'a str>§homepage: Option<&'a str>§private: Option<bool>§visibility: Option<&'a str>§security_and_analysis: Option<&'a str>§has_issues: Option<bool>§has_projects: Option<bool>§has_wiki: Option<bool>§is_template: Option<bool>§default_branch: Option<&'a str>§allow_squash_merge: Option<bool>§allow_merge_commit: Option<bool>§allow_rebase_merge: Option<bool>§allow_auto_merge: Option<bool>§delete_branch_on_merge: Option<bool>§allow_update_branch: Option<bool>§use_squash_pr_title_as_default: Option<bool>§squash_merge_commit_title: Option<&'a str>§squash_merge_commit_message: Option<&'a str>§merge_commit_title: Option<&'a str>§merge_commit_message: Option<&'a str>§archived: Option<bool>§allow_forking: Option<bool>§web_commit_signoff_required: Option<bool>

Implementations§

Source§

impl<'a> UpdateARepository<'a>

Source

pub fn new(owner: &'a str, repo: &'a str) -> Self

Build a UpdateARepository instance.

Source

pub fn owner(self, owner: &'a str) -> Self

Set a new owner.

Source

pub fn repo(self, repo: &'a str) -> Self

Set a new repo.

Source

pub fn name(self, name: &'a str) -> Self

Set a new name.

Source

pub fn description(self, description: &'a str) -> Self

Set a new description.

Source

pub fn homepage(self, homepage: &'a str) -> Self

Set a new homepage.

Source

pub fn private(self, private: bool) -> Self

Set a new private.

Source

pub fn visibility(self, visibility: &'a str) -> Self

Set a new visibility.

Source

pub fn security_and_analysis(self, security_and_analysis: &'a str) -> Self

Source

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

Set a new has_issues.

Source

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

Set a new has_projects.

Source

pub fn has_wiki(self, has_wiki: bool) -> Self

Set a new has_wiki.

Source

pub fn is_template(self, is_template: bool) -> Self

Set a new is_template.

Source

pub fn default_branch(self, default_branch: &'a str) -> Self

Set a new default_branch.

Source

pub fn allow_squash_merge(self, allow_squash_merge: bool) -> Self

Set a new allow_squash_merge.

Source

pub fn allow_merge_commit(self, allow_merge_commit: bool) -> Self

Set a new allow_merge_commit.

Source

pub fn allow_rebase_merge(self, allow_rebase_merge: bool) -> Self

Set a new allow_rebase_merge.

Source

pub fn allow_auto_merge(self, allow_auto_merge: bool) -> Self

Set a new allow_auto_merge.

Source

pub fn delete_branch_on_merge(self, delete_branch_on_merge: bool) -> Self

Source

pub fn allow_update_branch(self, allow_update_branch: bool) -> Self

Source

pub fn use_squash_pr_title_as_default( self, use_squash_pr_title_as_default: bool, ) -> Self

Source

pub fn squash_merge_commit_title( self, squash_merge_commit_title: &'a str, ) -> Self

Source

pub fn squash_merge_commit_message( self, squash_merge_commit_message: &'a str, ) -> Self

Source

pub fn merge_commit_title(self, merge_commit_title: &'a str) -> Self

Set a new merge_commit_title.

Source

pub fn merge_commit_message(self, merge_commit_message: &'a str) -> Self

Source

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

Set a new archived.

Source

pub fn allow_forking(self, allow_forking: bool) -> Self

Set a new allow_forking.

Source

pub fn web_commit_signoff_required( self, web_commit_signoff_required: bool, ) -> Self

Trait Implementations§

Source§

impl<'a> Api for UpdateARepository<'a>

Source§

const ACCEPT: &'static str = "application/vnd.github+json"

Request’s header Accept’s value.
Source§

fn api(&self) -> String

Request’s target URI/URL.
Source§

const BASE_URI: &'static str = "https://api.github.com"

GitHub REST APIs’ base prefix.
Source§

impl<'a> ApiExt for UpdateARepository<'a>

Source§

const METHOD: Method = Method::Patch

HTTP method.
Source§

fn payload_params(&self) -> Vec<(&'static str, String)>

Request’s payload parameters. Read more
Source§

impl<'a> Clone for UpdateARepository<'a>

Source§

fn clone(&self) -> UpdateARepository<'a>

Returns a duplicate 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<'a> Debug for UpdateARepository<'a>

Source§

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

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

impl<'a> PartialEq for UpdateARepository<'a>

Source§

fn eq(&self, other: &UpdateARepository<'a>) -> 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<'a> Eq for UpdateARepository<'a>

Source§

impl<'a> StructuralPartialEq for UpdateARepository<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for UpdateARepository<'a>

§

impl<'a> RefUnwindSafe for UpdateARepository<'a>

§

impl<'a> Send for UpdateARepository<'a>

§

impl<'a> Sync for UpdateARepository<'a>

§

impl<'a> Unpin for UpdateARepository<'a>

§

impl<'a> UnwindSafe for UpdateARepository<'a>

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