Struct substrate_stellar_sdk::network::Network[][src]

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

A wrapper type for the passphrase of a Stellar network

The SHA-256 hash of this passphrase is used for signing transactions. This makes sure that a signed transaction is only valid for a network having the specified passphrase.

Implementations

Construct a new Network for the given passphrase

Return the passphrase of the network

Return the SHA-256 hash of the passphrase

This hash is used for signing transactions.

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

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. 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.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. 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.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.