pub struct SyncOptions {
    pub addresses: Vec<String>,
    pub address_start_index: u32,
    pub address_start_index_internal: u32,
    pub force_syncing: bool,
    pub sync_incoming_transactions: bool,
    pub sync_pending_transactions: bool,
    pub sync_aliases_and_nfts: bool,
    pub sync_only_most_basic_outputs: bool,
}
Expand description

The synchronization options

Fields

addresses: Vec<String>

Specific Bech32 encoded addresses of the account to sync, if addresses are provided, then address_start_index will be ignored

address_start_index: u32

Address index from which to start syncing addresses. 0 by default, using a higher index will be faster because addresses with a lower index will be skipped, but could result in a wrong balance for that reason

address_start_index_internal: u32

Address index from which to start syncing internal addresses. 0 by default, using a higher index will be faster because addresses with a lower index will be skipped, but could result in a wrong balance for that reason

force_syncing: bool

Usually syncing is skipped if it’s called in between 200ms, because there can only be new changes every milestone and calling it twice “at the same time” will not return new data When this to true, we will sync anyways, even if it’s called 0ms after the las sync finished.

sync_incoming_transactions: bool

Try to sync transactions from incoming outputs with their inputs. Some data may not be obtained if it has been pruned.

sync_pending_transactions: bool

Checks pending transactions and promotes/reattaches them if necessary.

sync_aliases_and_nfts: bool

Specifies if only basic outputs should be synced or also alias and nft outputs

sync_only_most_basic_outputs: bool

Specifies if only basic outputs with an AddressUnlockCondition alone should be synced, will overwrite sync_aliases_and_nfts

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. 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