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 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.
ark_server_access_token: Option<String>👎Deprecated since 0.2.4:
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.
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
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>,
Deserialize this value from the given Serde deserializer. Read more
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
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