Struct octorust::billing::Billing[][src]

pub struct Billing { /* fields omitted */ }

Implementations

Get GitHub Actions billing for an enterprise.

This function performs a GET to the /enterprises/{enterprise}/settings/billing/actions endpoint.

Gets the summary of the free and paid GitHub Actions minutes used.

Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.

The authenticated user must be an enterprise admin.

FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-enterprise

Parameters:

  • enterprise: &str – The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Get GitHub Packages billing for an enterprise.

This function performs a GET to the /enterprises/{enterprise}/settings/billing/packages endpoint.

Gets the free and paid storage used for GitHub Packages in gigabytes.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

The authenticated user must be an enterprise admin.

FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-enterprise

Parameters:

  • enterprise: &str – The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Get shared storage billing for an enterprise.

This function performs a GET to the /enterprises/{enterprise}/settings/billing/shared-storage endpoint.

Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

The authenticated user must be an enterprise admin.

FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-an-enterprise

Parameters:

  • enterprise: &str – The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Get GitHub Actions billing for an organization.

This function performs a GET to the /orgs/{org}/settings/billing/actions endpoint.

Gets the summary of the free and paid GitHub Actions minutes used.

Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.

Access tokens must have the repo or admin:org scope.

FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-organization

Parameters:

  • org: &str

Get GitHub Packages billing for an organization.

This function performs a GET to the /orgs/{org}/settings/billing/packages endpoint.

Gets the free and paid storage used for GitHub Packages in gigabytes.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

Access tokens must have the repo or admin:org scope.

FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-organization

Parameters:

  • org: &str

Get shared storage billing for an organization.

This function performs a GET to the /orgs/{org}/settings/billing/shared-storage endpoint.

Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

Access tokens must have the repo or admin:org scope.

FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-an-organization

Parameters:

  • org: &str

Get GitHub Actions billing for a user.

This function performs a GET to the /users/{username}/settings/billing/actions endpoint.

Gets the summary of the free and paid GitHub Actions minutes used.

Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.

Access tokens must have the user scope.

FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-a-user

Parameters:

  • username: &str

Get GitHub Packages billing for a user.

This function performs a GET to the /users/{username}/settings/billing/packages endpoint.

Gets the free and paid storage used for GitHub Packages in gigabytes.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

Access tokens must have the user scope.

FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-a-user

Parameters:

  • username: &str

Get shared storage billing for a user.

This function performs a GET to the /users/{username}/settings/billing/shared-storage endpoint.

Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.

Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”

Access tokens must have the user scope.

FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-a-user

Parameters:

  • username: &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.