pub struct Redmine { /* private fields */ }
Expand description

main API client object

Implementations

create a Redmine object

create a Redmine object from the environment variables

REDMINE_API_KEY REDMINE_URL

Sets the user id of a user to impersonate in all future API calls

this requires Redmine admin privileges

returns the issue URL for a given issue id

this is mostly for convenience since we are already storing the redmine URL and it works entirely on the client

use this with endpoints that have no response body, e.g. those just deleting a Redmine object

use this with endpoints which return a JSON response but do not support pagination

you can use it with those that support pagination but they will only return the first page

use this to get a single page of a paginated JSON response

use this to get the results for all pages of a paginated JSON response

Trait Implementations

Formats the value using the given formatter. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more