pub struct ImportVtxoRequest {
pub vtxos: Vec<String>,
pub gap_limit: Option<u32>,
pub skip_status_check: bool,
pub allow_partial: bool,
}Fields§
§vtxos: Vec<String>Hex-encoded VTXOs to import
gap_limit: Option<u32>How many consecutive unused key indices to scan for each VTXO’s user pubkey. Overrides the wallet’s configured gap limit.
skip_status_check: boolImport as spendable without asking the server for each VTXO’s state.
Use it when you already know it’s spendable or when the server can’t be reached, as it can leave the wallet in an inconsistent state.
allow_partial: boolKeep the VTXOs that import successfully even when another one in the request fails. The response lists the VTXOs that were kept.
Without it, a single failure discards the whole request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImportVtxoRequest
impl<'de> Deserialize<'de> for ImportVtxoRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImportVtxoRequest
impl RefUnwindSafe for ImportVtxoRequest
impl Send for ImportVtxoRequest
impl Sync for ImportVtxoRequest
impl Unpin for ImportVtxoRequest
impl UnsafeUnpin for ImportVtxoRequest
impl UnwindSafe for ImportVtxoRequest
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request