pub struct CreateWalletRequest {
pub ark_server: Option<String>,
pub ark_server_access_token: Option<String>,
pub chain_source: Option<ChainSourceConfig>,
pub mnemonic: Option<String>,
pub network: BarkNetwork,
pub birthday_height: Option<u32>,
pub gap_limit: Option<u32>,
pub force: bool,
}Fields§
§ark_server: Option<String>The Ark server to use for the wallet. Optional when a config.toml already exists in the datadir or when the network has a default Ark server (mainnet and signet).
ark_server_access_token: Option<String>access tokens are not enforced by the server; this field will be removed
An access token for a private Ark server.
Deprecated: access tokens are no longer enforced by the server; this field will be removed in a future release.
chain_source: Option<ChainSourceConfig>The chain source to use for the wallet. Optional when a config.toml already exists in the datadir or when the network has a default chain source (mainnet, signet and mutinynet).
mnemonic: Option<String>The optional mnemonic to use for the wallet
network: BarkNetworkThe network to use for the wallet
birthday_height: Option<u32>An optional birthday height to start syncing the wallet from
gap_limit: Option<u32>How many consecutive unused key indices a VTXO key scan may cross before it concludes the wallet doesn’t own a recovered/imported VTXO.
force: boolProceed even if the datadir contains unexpected files
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateWalletRequest
impl<'de> Deserialize<'de> for CreateWalletRequest
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>,
Auto Trait Implementations§
impl Freeze for CreateWalletRequest
impl RefUnwindSafe for CreateWalletRequest
impl Send for CreateWalletRequest
impl Sync for CreateWalletRequest
impl Unpin for CreateWalletRequest
impl UnsafeUnpin for CreateWalletRequest
impl UnwindSafe for CreateWalletRequest
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
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>
T in a tonic::Request