Struct gitea_sdk::api::user::create_repo::CreateRepoBuilder
source · pub struct CreateRepoBuilder { /* private fields */ }
Expand description
Represents the options for creating a new repository.
The only required field is name
.
Implementations§
source§impl CreateRepoBuilder
impl CreateRepoBuilder
sourcepub fn auto_init(self, auto_init: bool) -> Self
pub fn auto_init(self, auto_init: bool) -> Self
Whether the repository should be automatically initialized. This will create a README, LICENSE, and .gitignore file.
sourcepub fn default_branch(self, default_branch: String) -> Self
pub fn default_branch(self, default_branch: String) -> Self
Default branch of the repository.
sourcepub fn description(self, description: String) -> Self
pub fn description(self, description: String) -> Self
Description of the repository.
sourcepub fn gitignores(self, gitignores: String) -> Self
pub fn gitignores(self, gitignores: String) -> Self
Optional Gitignore templates to use.
Will be ignored if auto_init
is false.
sourcepub fn issue_labels(self, issue_labels: String) -> Self
pub fn issue_labels(self, issue_labels: String) -> Self
Optional Issue label-set to use.
sourcepub fn object_format_name(self, object_format_name: ObjectFormatName) -> Self
pub fn object_format_name(self, object_format_name: ObjectFormatName) -> Self
Object Format Name of the underlying git repository.
sourcepub fn readme(self, readme: String) -> Self
pub fn readme(self, readme: String) -> Self
Optional README template to use.
Will be ignored if auto_init
is false.
sourcepub fn trust_model(self, trust_model: TrustModel) -> Self
pub fn trust_model(self, trust_model: TrustModel) -> Self
Trust model for verifying commits in the repository.
Trait Implementations§
source§impl Clone for CreateRepoBuilder
impl Clone for CreateRepoBuilder
source§fn clone(&self) -> CreateRepoBuilder
fn clone(&self) -> CreateRepoBuilder
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 CreateRepoBuilder
impl Debug for CreateRepoBuilder
source§impl PartialEq for CreateRepoBuilder
impl PartialEq for CreateRepoBuilder
source§impl Serialize for CreateRepoBuilder
impl Serialize for CreateRepoBuilder
impl StructuralPartialEq for CreateRepoBuilder
Auto Trait Implementations§
impl Freeze for CreateRepoBuilder
impl RefUnwindSafe for CreateRepoBuilder
impl Send for CreateRepoBuilder
impl Sync for CreateRepoBuilder
impl Unpin for CreateRepoBuilder
impl UnwindSafe for CreateRepoBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)