Struct nakadion::api::Builder[][src]

#[non_exhaustive]
pub struct Builder { pub nakadi_base_url: Option<NakadiBaseUrl>, pub timeout_millis: Option<ApiClientTimeoutMillis>, pub attempt_timeout_millis: Option<ApiClientAttemptTimeoutMillis>, pub initial_retry_interval_millis: Option<ApiClientInitialRetryIntervalMillis>, pub retry_interval_multiplier: Option<ApiClientRetryIntervalMultiplier>, pub max_retry_interval_millis: Option<ApiClientMaxRetryIntervalMillis>, pub retry_on_auth_errors: Option<ApiClientRetryOnAuthErrors>, }

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
nakadi_base_url: Option<NakadiBaseUrl>timeout_millis: Option<ApiClientTimeoutMillis>

Timeout for a complete publishing including potential retries

attempt_timeout_millis: Option<ApiClientAttemptTimeoutMillis>

Timeout for a single request attempt to Nakadi

initial_retry_interval_millis: Option<ApiClientInitialRetryIntervalMillis>

Interval length before the first retry attempt

retry_interval_multiplier: Option<ApiClientRetryIntervalMultiplier>

Multiplier for the length of of the next retry interval

max_retry_interval_millis: Option<ApiClientMaxRetryIntervalMillis>

Maximum length of an interval before a retry

retry_on_auth_errors: Option<ApiClientRetryOnAuthErrors>

Retry on authentication/authorization errors if true

Implementations

Initializes all fields from environment variables prefixed with “NAKADION_”

Initializes all fields from environment variables prefixed with “[prefix]_” The underscore is omitted if prefix is empty

Initializes all fields from environment variables without any prefix

Updates all not yet set fields from environment variables prefixed with “NAKADION_”

Updates all not yet set fields from environment variables prefixed with “[prefix]_” The underscore is omitted if prefix is empty

Updates all not yet set fields from environment variables without any prefix

Timeout for a complete request including potential retries

Timeout for a single attempt to get a response from Nakadi

Interval length before the first retry attempt

Multiplier for the length of of the next retry interval

Maximum length of an interval before a retry

Retry on authentication/authorization errors if true

Build an ApiClient from this Builder

No environment variables are read

Build an ApiClient from this Builder

Unset fields of this Builder will be set from the environment including the settings for the ProvidesAccessToken

Environment variables must be prefixed with NAKADION

Build an ApiClient from this Builder

Unset fields of this Builder will be set from the environment including the settings for the ProvidesAccessToken

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.

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