Struct githuber::api::repos::CreateAnOrganizationRepository
source · pub struct CreateAnOrganizationRepository<'a> {Show 24 fields
pub org: &'a str,
pub name: &'a str,
pub description: Option<&'a str>,
pub homepage: Option<&'a str>,
pub private: Option<bool>,
pub visibility: Option<&'a str>,
pub has_issues: Option<bool>,
pub has_projects: Option<bool>,
pub has_wiki: Option<bool>,
pub has_downloads: Option<bool>,
pub is_template: Option<bool>,
pub team_id: Option<u8>,
pub auto_init: Option<bool>,
pub gitignore_template: Option<&'a str>,
pub license_template: Option<&'a str>,
pub allow_squash_merge: Option<bool>,
pub allow_rebase_merge: Option<bool>,
pub allow_auto_merge: Option<bool>,
pub delete_branch_on_merge: 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>,
}
Expand description
GitHub reference(s):
Fields
org: &'a str
name: &'a str
description: Option<&'a str>
homepage: Option<&'a str>
private: Option<bool>
visibility: Option<&'a str>
has_issues: Option<bool>
has_projects: Option<bool>
has_wiki: Option<bool>
has_downloads: Option<bool>
is_template: Option<bool>
team_id: Option<u8>
auto_init: Option<bool>
gitignore_template: Option<&'a str>
license_template: Option<&'a str>
allow_squash_merge: Option<bool>
allow_rebase_merge: Option<bool>
allow_auto_merge: Option<bool>
delete_branch_on_merge: 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>
Implementations
sourceimpl<'a> CreateAnOrganizationRepository<'a>
impl<'a> CreateAnOrganizationRepository<'a>
sourcepub fn new(org: &'a str, name: &'a str) -> Self
pub fn new(org: &'a str, name: &'a str) -> Self
Build a CreateAnOrganizationRepository
instance.
sourcepub fn description(self, description: &'a str) -> Self
pub fn description(self, description: &'a str) -> Self
Set a new description
.
sourcepub fn visibility(self, visibility: &'a str) -> Self
pub fn visibility(self, visibility: &'a str) -> Self
Set a new visibility
.
sourcepub fn has_issues(self, has_issues: bool) -> Self
pub fn has_issues(self, has_issues: bool) -> Self
Set a new has_issues
.
sourcepub fn has_projects(self, has_projects: bool) -> Self
pub fn has_projects(self, has_projects: bool) -> Self
Set a new has_projects
.
sourcepub fn has_downloads(self, has_downloads: bool) -> Self
pub fn has_downloads(self, has_downloads: bool) -> Self
Set a new has_downloads
.
sourcepub fn is_template(self, is_template: bool) -> Self
pub fn is_template(self, is_template: bool) -> Self
Set a new is_template
.
sourcepub fn gitignore_template(self, gitignore_template: &'a str) -> Self
pub fn gitignore_template(self, gitignore_template: &'a str) -> Self
Set a new gitignore_template
.
sourcepub fn license_template(self, license_template: &'a str) -> Self
pub fn license_template(self, license_template: &'a str) -> Self
Set a new license_template
.
sourcepub fn allow_squash_merge(self, allow_squash_merge: bool) -> Self
pub fn allow_squash_merge(self, allow_squash_merge: bool) -> Self
Set a new allow_squash_merge
.
sourcepub fn allow_rebase_merge(self, allow_rebase_merge: bool) -> Self
pub fn allow_rebase_merge(self, allow_rebase_merge: bool) -> Self
Set a new allow_rebase_merge
.
sourcepub fn allow_auto_merge(self, allow_auto_merge: bool) -> Self
pub fn allow_auto_merge(self, allow_auto_merge: bool) -> Self
Set a new allow_auto_merge
.
sourcepub fn delete_branch_on_merge(self, delete_branch_on_merge: bool) -> Self
pub fn delete_branch_on_merge(self, delete_branch_on_merge: bool) -> Self
Set a new delete_branch_on_merge
.
sourcepub fn use_squash_pr_title_as_default(
self,
use_squash_pr_title_as_default: bool
) -> Self
pub fn use_squash_pr_title_as_default(
self,
use_squash_pr_title_as_default: bool
) -> Self
Set a new use_squash_pr_title_as_default
.
sourcepub fn squash_merge_commit_title(
self,
squash_merge_commit_title: &'a str
) -> Self
pub fn squash_merge_commit_title(
self,
squash_merge_commit_title: &'a str
) -> Self
Set a new squash_merge_commit_title
.
sourcepub fn squash_merge_commit_message(
self,
squash_merge_commit_message: &'a str
) -> Self
pub fn squash_merge_commit_message(
self,
squash_merge_commit_message: &'a str
) -> Self
Set a new squash_merge_commit_message
.
sourcepub fn merge_commit_title(self, merge_commit_title: &'a str) -> Self
pub fn merge_commit_title(self, merge_commit_title: &'a str) -> Self
Set a new merge_commit_title
.
sourcepub fn merge_commit_message(self, merge_commit_message: &'a str) -> Self
pub fn merge_commit_message(self, merge_commit_message: &'a str) -> Self
Set a new merge_commit_message
.
Trait Implementations
sourceimpl<'a> Api for CreateAnOrganizationRepository<'a>
impl<'a> Api for CreateAnOrganizationRepository<'a>
sourceimpl<'a> ApiExt for CreateAnOrganizationRepository<'a>
impl<'a> ApiExt for CreateAnOrganizationRepository<'a>
sourceimpl<'a> Clone for CreateAnOrganizationRepository<'a>
impl<'a> Clone for CreateAnOrganizationRepository<'a>
sourcefn clone(&self) -> CreateAnOrganizationRepository<'a>
fn clone(&self) -> CreateAnOrganizationRepository<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for CreateAnOrganizationRepository<'a>
impl<'a> Debug for CreateAnOrganizationRepository<'a>
sourceimpl<'a> PartialEq<CreateAnOrganizationRepository<'a>> for CreateAnOrganizationRepository<'a>
impl<'a> PartialEq<CreateAnOrganizationRepository<'a>> for CreateAnOrganizationRepository<'a>
sourcefn eq(&self, other: &CreateAnOrganizationRepository<'a>) -> bool
fn eq(&self, other: &CreateAnOrganizationRepository<'a>) -> bool
impl<'a> Eq for CreateAnOrganizationRepository<'a>
impl<'a> StructuralEq for CreateAnOrganizationRepository<'a>
impl<'a> StructuralPartialEq for CreateAnOrganizationRepository<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateAnOrganizationRepository<'a>
impl<'a> Send for CreateAnOrganizationRepository<'a>
impl<'a> Sync for CreateAnOrganizationRepository<'a>
impl<'a> Unpin for CreateAnOrganizationRepository<'a>
impl<'a> UnwindSafe for CreateAnOrganizationRepository<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more