Enum catenis_api_client::ClientOptions[][src]

pub enum ClientOptions<'a> {
    Host(&'a str),
    Environment(Environment),
    Secure(bool),
    Version(ApiVersion),
    UseCompression(bool),
    CompressThreshold(usize),
}
Expand description

Option settings that can be used when instantiating the Catenis API client.

Variants

Host(&'a str)

Host name (with optional port) of target Catenis API server. Default value: "catenis.io".

Tuple Fields of Host

0: &'a str
Environment(Environment)

Environment of target Catenis API server. Default value: Environment::Prod.

Tuple Fields of Environment

0: Environment
Secure(bool)

Indicates whether a secure connection (HTTPS) should be used. Default value: true.

Tuple Fields of Secure

0: bool
Version(ApiVersion)

Version of Catenis API to target. Default value: ApiVersion(11, 0).

Tuple Fields of Version

0: ApiVersion
UseCompression(bool)

Indicates whether request body should be compressed. Default value: true.

Tuple Fields of UseCompression

0: bool
CompressThreshold(usize)

Minimum size, in bytes, of request body for it to be compressed. Default value: 1024.

Tuple Fields of CompressThreshold

0: usize

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.