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

The main API entry point representing a DeepL developer account with an associated API key.

Example

See Example.

Error Handling

None of the functions will panic. Instead, the API methods usually return a Result which may contain an Error of one of the defined ErrorKinds with more information about what went wrong.

If you get an AuthorizationError, then something was wrong with your API key, for example.

Implementations

Implements the actual REST API. See also the online documentation.

Use this to create a new DeepL API client instance where multiple function calls can be performed. A valid api_key is required.

Should you ever need to use more than one DeepL account in our program, then you can create one instance for each account / API key.

Retrieve information about API usage & limits. This can also be used to verify an API key without consuming translation contingent.

See also the vendor documentation.

Retrieve all currently available source languages.

See also the vendor documentation.

Retrieve all currently available target languages.

See also the vendor documentation.

Translate one or more text chunks at once. You can pass in optional translation flags if you need non-default behaviour.

Please see the parameter documentation and the vendor documentation for details.

Create a glossary.

Please take a look at the vendor documentation for details.

List all glossaries.

Please take a look at the vendor documentation for details.

Delete a glossary.

Please take a look at the vendor documentation for details.

Retrieve Glossary Details.

Please take a look at the vendor documentation for details.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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