Struct iota_client::builder::ClientBuilder[][src]

pub struct ClientBuilder { /* fields omitted */ }
Expand description

Builder to construct client instance with sensible default values

Implementations

Creates an IOTA client builder.

Adds an IOTA node by its URL.

Adds an IOTA node by its URL to be used as primary node, with optional jwt and or basic authentication

Adds an IOTA node by its URL to be used as primary PoW node (for remote PoW), with optional jwt and or basic authentication

Adds a permanode by its URL, with optional jwt and or basic authentication

Adds an IOTA node by its URL with optional jwt and or basic authentication

Adds a list of IOTA nodes by their URLs.

Set the node sync interval

Disables the node syncing process. Every node will be considered healthy and ready to use.

Get node list from the node_pool_urls

Set if quroum should be used or not

Set amount of nodes which should be used for quorum

Set quorum_threshold

Selects the type of network to get default nodes for it, only “testnet” is supported at the moment. Nodes that don’t belong to this network are ignored. Default nodes are only used when no other nodes are provided.

Sets whether the PoW should be done locally or remotely.

Sets after how many seconds new tips will be requested during PoW

Sets the default request timeout.

Sets the request timeout for a specific API usage.

Build the Client instance.

Trait Implementations

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