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

Client for performing IOTA Identity operations on the Tangle.

Implementations

Creates a new Client with default settings.

Creates a ClientBuilder to configure a new Client.

This is the same as ClientBuilder::new.

Creates a new Client based on the ClientBuilder configuration.

Returns the IOTA Network that the Client is configured to use.

Publishes an IotaDocument to the Tangle. If retry_until_included is true, this method calls publish_json_with_retry with its default interval and max_attempts values to increase the probability that the message will be referenced by a milestone.

👎 Deprecated since 0.5.0:

diff chain features are slated for removal

Publishes a DiffMessage to the Tangle to form part of the diff chain for the integration. chain message specified by the given MessageId.

This method calls publish_json_with_retry with its default interval and max_attempts values for increasing the probability that the message will be referenced by a milestone.

Compresses and publishes arbitrary JSON data to the specified index on the Tangle.

Publishes arbitrary JSON data to the specified index on the Tangle. Retries (promotes or reattaches) the message until it’s included (referenced by a milestone). Default interval is 5 seconds and max attempts is 40.

Fetch the IotaDocument specified by the given IotaDID.

Fetches a DocumentChain given an IotaDID.

Returns the DocumentHistory of the given IotaDID.

👎 Deprecated since 0.5.0:

diff chain features are slated for removal

Returns the ChainHistory of a diff chain starting from an IotaDocument on the integration chain.

NOTE: the document must have been published to the Tangle and have a valid message id.

Checks if a message is confirmed by a milestone.

Trait Implementations

Formats the value using the given formatter. Read more

Resolves a DID on the Tangle

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.

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