Struct githuber::api::repos::CreateARepositoryUsingATemplate
source · pub struct CreateARepositoryUsingATemplate<'a> {
pub template_owner: &'a str,
pub template_repo: &'a str,
pub name: &'a str,
pub owner: Option<&'a str>,
pub description: Option<&'a str>,
pub include_all_branches: Option<bool>,
pub private: Option<bool>,
}
Expand description
GitHub reference(s):
Fields
template_owner: &'a str
template_repo: &'a str
name: &'a str
owner: Option<&'a str>
description: Option<&'a str>
include_all_branches: Option<bool>
private: Option<bool>
Implementations
sourceimpl<'a> CreateARepositoryUsingATemplate<'a>
impl<'a> CreateARepositoryUsingATemplate<'a>
sourcepub fn new(template_owner: &'a str, template_repo: &'a str, name: &'a str) -> Self
pub fn new(template_owner: &'a str, template_repo: &'a str, name: &'a str) -> Self
Build a CreateARepositoryUsingATemplate
instance.
sourcepub fn template_owner(self, template_owner: &'a str) -> Self
pub fn template_owner(self, template_owner: &'a str) -> Self
Set a new template_owner
.
sourcepub fn template_repo(self, template_repo: &'a str) -> Self
pub fn template_repo(self, template_repo: &'a str) -> Self
Set a new template_repo
.
sourcepub fn description(self, description: &'a str) -> Self
pub fn description(self, description: &'a str) -> Self
Set a new description
.
sourcepub fn include_all_branches(self, include_all_branches: bool) -> Self
pub fn include_all_branches(self, include_all_branches: bool) -> Self
Set a new include_all_branches
.
Trait Implementations
sourceimpl<'a> Api for CreateARepositoryUsingATemplate<'a>
impl<'a> Api for CreateARepositoryUsingATemplate<'a>
sourceimpl<'a> ApiExt for CreateARepositoryUsingATemplate<'a>
impl<'a> ApiExt for CreateARepositoryUsingATemplate<'a>
sourceimpl<'a> Clone for CreateARepositoryUsingATemplate<'a>
impl<'a> Clone for CreateARepositoryUsingATemplate<'a>
sourcefn clone(&self) -> CreateARepositoryUsingATemplate<'a>
fn clone(&self) -> CreateARepositoryUsingATemplate<'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 CreateARepositoryUsingATemplate<'a>
impl<'a> Debug for CreateARepositoryUsingATemplate<'a>
sourceimpl<'a> PartialEq<CreateARepositoryUsingATemplate<'a>> for CreateARepositoryUsingATemplate<'a>
impl<'a> PartialEq<CreateARepositoryUsingATemplate<'a>> for CreateARepositoryUsingATemplate<'a>
sourcefn eq(&self, other: &CreateARepositoryUsingATemplate<'a>) -> bool
fn eq(&self, other: &CreateARepositoryUsingATemplate<'a>) -> bool
impl<'a> Eq for CreateARepositoryUsingATemplate<'a>
impl<'a> StructuralEq for CreateARepositoryUsingATemplate<'a>
impl<'a> StructuralPartialEq for CreateARepositoryUsingATemplate<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateARepositoryUsingATemplate<'a>
impl<'a> Send for CreateARepositoryUsingATemplate<'a>
impl<'a> Sync for CreateARepositoryUsingATemplate<'a>
impl<'a> Unpin for CreateARepositoryUsingATemplate<'a>
impl<'a> UnwindSafe for CreateARepositoryUsingATemplate<'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