pub struct CreateRepoOption {
pub auto_init: Option<bool>,
pub default_branch: Option<String>,
pub description: Option<String>,
pub gitignores: Option<String>,
pub issue_labels: Option<String>,
pub license: Option<String>,
pub name: String,
pub object_format_name: Option<ObjectFormatName>,
pub private: Option<bool>,
pub readme: Option<String>,
pub template: Option<bool>,
pub trust_model: Option<TrustModel>,
}
Expand description
CreateRepoOption : CreateRepoOption options when creating repository
Fields§
§auto_init: Option<bool>
Whether the repository should be auto-initialized?
default_branch: Option<String>
DefaultBranch of the repository (used when initializes and in template)
description: Option<String>
Description of the repository to create
gitignores: Option<String>
Gitignores to use
issue_labels: Option<String>
Label-Set to use
license: Option<String>
License to use
name: String
Name of the repository to create
object_format_name: Option<ObjectFormatName>
ObjectFormatName of the underlying git repository
private: Option<bool>
Whether the repository is private
readme: Option<String>
Readme of the repository to create
template: Option<bool>
Whether the repository is template
trust_model: Option<TrustModel>
TrustModel of the repository
Implementations§
Source§impl CreateRepoOption
impl CreateRepoOption
Sourcepub fn new(name: String) -> CreateRepoOption
pub fn new(name: String) -> CreateRepoOption
CreateRepoOption options when creating repository
Trait Implementations§
Source§impl Clone for CreateRepoOption
impl Clone for CreateRepoOption
Source§fn clone(&self) -> CreateRepoOption
fn clone(&self) -> CreateRepoOption
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 CreateRepoOption
impl Debug for CreateRepoOption
Source§impl Default for CreateRepoOption
impl Default for CreateRepoOption
Source§fn default() -> CreateRepoOption
fn default() -> CreateRepoOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateRepoOption
impl<'de> Deserialize<'de> for CreateRepoOption
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 CreateRepoOption
impl PartialEq for CreateRepoOption
Source§impl Serialize for CreateRepoOption
impl Serialize for CreateRepoOption
impl StructuralPartialEq for CreateRepoOption
Auto Trait Implementations§
impl Freeze for CreateRepoOption
impl RefUnwindSafe for CreateRepoOption
impl Send for CreateRepoOption
impl Sync for CreateRepoOption
impl Unpin for CreateRepoOption
impl UnwindSafe for CreateRepoOption
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