Struct octorust::licenses::Licenses[][src]

pub struct Licenses { /* fields omitted */ }

Implementations

Get all commonly used licenses.

This function performs a GET to the /licenses endpoint.

FROM: https://docs.github.com/rest/reference/licenses#get-all-commonly-used-licenses

Parameters:

  • featured: bool
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.

Get all commonly used licenses.

This function performs a GET to the /licenses endpoint.

As opposed to get_all_commonly_used, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/licenses#get-all-commonly-used-licenses

Get a license.

This function performs a GET to the /licenses/{license} endpoint.

FROM: https://docs.github.com/rest/reference/licenses#get-a-license

Parameters:

  • license: &str

Get the license for a repository.

This function performs a GET to the /repos/{owner}/{repo}/license endpoint.

This method returns the contents of the repository’s license file, if one is detected.

Similar to Get repository content, this method also supports custom media types for retrieving the raw license content or rendered license HTML.

FROM: https://docs.github.com/rest/reference/licenses/#get-the-license-for-a-repository

Parameters:

  • owner: &str
  • repo: &str

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.