pub struct GenerateRepoOption {
pub avatar: Option<bool>,
pub default_branch: Option<String>,
pub description: Option<String>,
pub git_content: Option<bool>,
pub git_hooks: Option<bool>,
pub labels: Option<bool>,
pub name: String,
pub owner: String,
pub private: Option<bool>,
pub protected_branch: Option<bool>,
pub topics: Option<bool>,
pub webhooks: Option<bool>,
}
Expand description
GenerateRepoOption : GenerateRepoOption options when creating repository using a template
Fields§
§avatar: Option<bool>
include avatar of the template repo
default_branch: Option<String>
Default branch of the new repository
description: Option<String>
Description of the repository to create
git_content: Option<bool>
include git content of default branch in template repo
git_hooks: Option<bool>
include git hooks in template repo
labels: Option<bool>
include labels in template repo
name: String
Name of the repository to create
owner: String
The organization or person who will own the new repository
private: Option<bool>
Whether the repository is private
protected_branch: Option<bool>
include protected branches in template repo
topics: Option<bool>
include topics in template repo
webhooks: Option<bool>
include webhooks in template repo
Implementations§
Source§impl GenerateRepoOption
impl GenerateRepoOption
Sourcepub fn new(name: String, owner: String) -> GenerateRepoOption
pub fn new(name: String, owner: String) -> GenerateRepoOption
GenerateRepoOption options when creating repository using a template
Trait Implementations§
Source§impl Clone for GenerateRepoOption
impl Clone for GenerateRepoOption
Source§fn clone(&self) -> GenerateRepoOption
fn clone(&self) -> GenerateRepoOption
Returns a copy 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 Debug for GenerateRepoOption
impl Debug for GenerateRepoOption
Source§impl Default for GenerateRepoOption
impl Default for GenerateRepoOption
Source§fn default() -> GenerateRepoOption
fn default() -> GenerateRepoOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateRepoOption
impl<'de> Deserialize<'de> for GenerateRepoOption
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 GenerateRepoOption
impl PartialEq for GenerateRepoOption
Source§impl Serialize for GenerateRepoOption
impl Serialize for GenerateRepoOption
impl StructuralPartialEq for GenerateRepoOption
Auto Trait Implementations§
impl Freeze for GenerateRepoOption
impl RefUnwindSafe for GenerateRepoOption
impl Send for GenerateRepoOption
impl Sync for GenerateRepoOption
impl Unpin for GenerateRepoOption
impl UnwindSafe for GenerateRepoOption
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