Struct iota_wallet::account::SyncOptions
source · [−]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
sourceimpl Clone for SyncOptions
impl Clone for SyncOptions
sourcefn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SyncOptions
impl Debug for SyncOptions
sourceimpl Default for SyncOptions
impl Default for SyncOptions
sourceimpl<'de> Deserialize<'de> for SyncOptions
impl<'de> Deserialize<'de> for SyncOptions
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for SyncOptions
impl Serialize for SyncOptions
Auto Trait Implementations
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnwindSafe for SyncOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more