Struct ipfs_api::GlobalOptions[][src]

pub struct GlobalOptions {
    pub offline: Option<bool>,
    pub timeout: Option<Duration>,
}
Expand description

Options valid on any IPFS Api request

Can be set on a client using BackendWithGlobalOptions

Fields

offline: Option<bool>timeout: Option<Duration>

Implementations

Create a builder for building GlobalOptions. On the builder, call .offline(...)(optional), .timeout(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of GlobalOptions.

Trait Implementations

Returns the “default value” for a type. 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.

Should always be Self

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