Struct roctogen::endpoints::gitignore::Gitignore [−][src]
pub struct Gitignore<'api> { /* fields omitted */ }
Implementations
impl<'api> Gitignore<'api>
[src]
impl<'api> Gitignore<'api>
[src]pub async fn get_all_templates_async(
&self
) -> Result<Vec<String>, GitignoreGetAllTemplatesError>
[src]
pub async fn get_all_templates_async(
&self
) -> Result<Vec<String>, GitignoreGetAllTemplatesError>
[src]Get all gitignore templates
List all templates available to pass as an option when creating a repository.
GitHub API docs for get_all_templates
pub fn get_all_templates(
&self
) -> Result<Vec<String>, GitignoreGetAllTemplatesError>
[src]
pub fn get_all_templates(
&self
) -> Result<Vec<String>, GitignoreGetAllTemplatesError>
[src]Get all gitignore templates
List all templates available to pass as an option when creating a repository.
GitHub API docs for get_all_templates
pub async fn get_template_async(
&self,
name: &str
) -> Result<GitignoreTemplate, GitignoreGetTemplateError>
[src]
pub async fn get_template_async(
&self,
name: &str
) -> Result<GitignoreTemplate, GitignoreGetTemplateError>
[src]Get a gitignore template
The API also allows fetching the source of a single template. Use the raw media type to get the raw contents.
GitHub API docs for get_template
pub fn get_template(
&self,
name: &str
) -> Result<GitignoreTemplate, GitignoreGetTemplateError>
[src]
pub fn get_template(
&self,
name: &str
) -> Result<GitignoreTemplate, GitignoreGetTemplateError>
[src]Get a gitignore template
The API also allows fetching the source of a single template. Use the raw media type to get the raw contents.
GitHub API docs for get_template