Struct iota_sdk::wallet::account::SyncOptions
source · pub struct SyncOptions {
pub addresses: Vec<Bech32Address>,
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 account: AccountSyncOptions,
pub alias: AliasSyncOptions,
pub nft: NftSyncOptions,
pub sync_only_most_basic_outputs: bool,
pub sync_native_token_foundries: bool,
}
wallet
only.Expand description
The synchronization options
Fields§
§addresses: Vec<Bech32Address>
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.
account: AccountSyncOptions
Specifies what outputs should be synced for the ed25519 addresses from the account.
alias: AliasSyncOptions
Specifies what outputs should be synced for the address of an alias output.
nft: NftSyncOptions
Specifies what outputs should be synced for the address of an nft output.
sync_only_most_basic_outputs: bool
Specifies if only basic outputs with an AddressUnlockCondition alone should be synced, will overwrite
account
, alias
and nft
options.
sync_native_token_foundries: bool
Sync native token foundries, so their metadata can be returned in the balance.
Trait Implementations§
source§impl Clone for SyncOptions
impl Clone for SyncOptions
source§fn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncOptions
impl Debug for SyncOptions
source§impl Default for SyncOptions
impl Default for SyncOptions
source§impl<'de> Deserialize<'de> for SyncOptions
impl<'de> Deserialize<'de> for SyncOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Hash for SyncOptions
impl Hash for SyncOptions
source§impl PartialEq for SyncOptions
impl PartialEq for SyncOptions
source§fn eq(&self, other: &SyncOptions) -> bool
fn eq(&self, other: &SyncOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SyncOptions
impl Serialize for SyncOptions
impl Eq for SyncOptions
impl StructuralPartialEq for SyncOptions
Auto Trait Implementations§
impl Freeze for SyncOptions
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnwindSafe for SyncOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more