pub struct ReposCreateUsingTemplateRequest {
pub owner: Option<String>,
pub name: String,
pub description: Option<String>,
pub include_all_branches: Option<bool>,
pub private: Option<bool>,
}
Fields§
§owner: Option<String>
The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.
name: String
The name of the new repository.
description: Option<String>
A short description of the new repository.
include_all_branches: Option<bool>
Set to true
to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: false
.
private: Option<bool>
Either true
to create a new private repository or false
to create a new public one.
Implementations§
Source§impl ReposCreateUsingTemplateRequest
impl ReposCreateUsingTemplateRequest
pub fn new(name: String) -> ReposCreateUsingTemplateRequest
Trait Implementations§
Source§impl Clone for ReposCreateUsingTemplateRequest
impl Clone for ReposCreateUsingTemplateRequest
Source§fn clone(&self) -> ReposCreateUsingTemplateRequest
fn clone(&self) -> ReposCreateUsingTemplateRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ReposCreateUsingTemplateRequest
impl Default for ReposCreateUsingTemplateRequest
Source§fn default() -> ReposCreateUsingTemplateRequest
fn default() -> ReposCreateUsingTemplateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateUsingTemplateRequest
impl<'de> Deserialize<'de> for ReposCreateUsingTemplateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 ReposCreateUsingTemplateRequest
impl PartialEq for ReposCreateUsingTemplateRequest
Source§fn eq(&self, other: &ReposCreateUsingTemplateRequest) -> bool
fn eq(&self, other: &ReposCreateUsingTemplateRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposCreateUsingTemplateRequest
Auto Trait Implementations§
impl Freeze for ReposCreateUsingTemplateRequest
impl RefUnwindSafe for ReposCreateUsingTemplateRequest
impl Send for ReposCreateUsingTemplateRequest
impl Sync for ReposCreateUsingTemplateRequest
impl Unpin for ReposCreateUsingTemplateRequest
impl UnwindSafe for ReposCreateUsingTemplateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more