pub struct NUT13Options {
pub batch_size: u32,
pub max_gap: u32,
}Expand description
Options for crate::wallet::Wallet::restore_with_opts.
Defaults match the NUT-13 spec recommendation (https://github.com/cashubtc/nuts/blob/main/13.md#generate-blindedmessages): a batch of 100 blinded messages and three consecutive empty batches to signal end-of-history. Callers that need more conservative pacing or different gap tolerance can override either field.
Fields§
§batch_size: u32Number of blinded messages to request per batch.
max_gap: u32Number of consecutive empty batches that terminate the scan.
Implementations§
Source§impl NUT13Options
impl NUT13Options
Trait Implementations§
Source§impl Clone for NUT13Options
impl Clone for NUT13Options
Source§fn clone(&self) -> NUT13Options
fn clone(&self) -> NUT13Options
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NUT13Options
impl Debug for NUT13Options
Auto Trait Implementations§
impl Freeze for NUT13Options
impl RefUnwindSafe for NUT13Options
impl Send for NUT13Options
impl Sync for NUT13Options
impl Unpin for NUT13Options
impl UnsafeUnpin for NUT13Options
impl UnwindSafe for NUT13Options
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
Mutably borrows from an owned value. Read more