pub fn generate(
        &self,
        name: &str,
    ) -> GenerateRepositoryBuilder<'_, '_> {
        GenerateRepositoryBuilder::new(self, name)
    }
/// Creates a new repository from repository if it is a template.
/// ```no_run
/// # use reqwest::Response;
///  async fn run() -> octocrab::Result<()> {
/// octocrab::instance()
///     .repos("owner", "repo")
///     .generate("rust")
///     .owner("new_owner")
///     .description("Description")
///     .include_all_branches(true)
///     .private(true)
///     .send()
///     .await
/// # }
/// ```
Creates a new repository from repository if it is a template.
Creates a new repository from repository if it is a template .
pub fn generate(
        &self,
        name: &str,
    ) -> GenerateRepositoryBuilder<'_, '_> {
        GenerateRepositoryBuilder::new(self, name)
    }
pub fn generate ( & self , name : & str , ) -> GenerateRepositoryBuilder < ' _ , ' _ > { GenerateRepositoryBuilder :: new ( self , name ) }
Creates a new repository from repository if it is a template.
Creates a new repository from repository if it is a template .
&self
name
&str
&self
name
&str
use reqwest::response;
async fn run() -> octocrab::Result<()> {
octocrab::instance()
.repos("owner", "repo")
.generate("rust")
.owner("new_owner")
.description("Description")
.include_all_branches(true)
.private(true)
.send()
.await
async fn run () - > octocrab :: Result< () > { octocrab :: instance () . repos ( " owner " " repo " ) . generate ( " rust " ) . owner ( " new_owner " ) . description ( " Description " ) . include_all_branches ( true ) . private ( true ) . send () . await
}
None