pub enum Input {
Show 26 variants
WalletCreate {Show 14 fields
id: String,
network: Network,
label: Option<String>,
mint_url: Option<String>,
rpc_endpoints: Vec<String>,
chain_id: Option<u64>,
mnemonic_secret: Option<String>,
btc_esplora_url: Option<String>,
btc_network: Option<String>,
btc_address_type: Option<String>,
btc_backend: Option<BtcBackend>,
btc_core_url: Option<String>,
btc_core_auth_secret: Option<String>,
btc_electrum_url: Option<String>,
},
LnWalletCreate {
id: String,
request: LnWalletCreateRequest,
},
WalletClose {
id: String,
wallet: String,
dangerously_skip_balance_check_and_may_lose_money: bool,
},
WalletList {
id: String,
network: Option<Network>,
},
Balance {
id: String,
wallet: Option<String>,
network: Option<Network>,
check: bool,
},
Receive {
id: String,
wallet: String,
network: Option<Network>,
amount: Option<Amount>,
onchain_memo: Option<String>,
wait_until_paid: bool,
wait_timeout_s: Option<u64>,
wait_poll_interval_ms: Option<u64>,
wait_sync_limit: Option<usize>,
write_qr_svg_file: bool,
min_confirmations: Option<u32>,
},
ReceiveClaim {
id: String,
wallet: String,
quote_id: String,
},
CashuSend {
id: String,
wallet: Option<String>,
amount: Amount,
onchain_memo: Option<String>,
local_memo: Option<BTreeMap<String, String>>,
mints: Option<Vec<String>>,
},
CashuReceive {
id: String,
wallet: Option<String>,
token: String,
},
Send {
id: String,
wallet: Option<String>,
network: Option<Network>,
to: String,
onchain_memo: Option<String>,
local_memo: Option<BTreeMap<String, String>>,
mints: Option<Vec<String>>,
},
Restore {
id: String,
wallet: String,
},
WalletShowSeed {
id: String,
wallet: String,
},
HistoryList {
id: String,
wallet: Option<String>,
network: Option<Network>,
onchain_memo: Option<String>,
limit: Option<usize>,
offset: Option<usize>,
since_epoch_s: Option<u64>,
until_epoch_s: Option<u64>,
},
HistoryStatus {
id: String,
transaction_id: String,
},
HistoryUpdate {
id: String,
wallet: Option<String>,
network: Option<Network>,
limit: Option<usize>,
},
LimitAdd {
id: String,
limit: SpendLimit,
},
LimitRemove {
id: String,
rule_id: String,
},
LimitList {
id: String,
},
LimitSet {
id: String,
limits: Vec<SpendLimit>,
},
WalletConfigShow {
id: String,
wallet: String,
},
WalletConfigSet {
id: String,
wallet: String,
label: Option<String>,
rpc_endpoints: Vec<String>,
chain_id: Option<u64>,
},
WalletConfigTokenAdd {
id: String,
wallet: String,
symbol: String,
address: String,
decimals: u8,
},
WalletConfigTokenRemove {
id: String,
wallet: String,
symbol: String,
},
Config(ConfigPatch),
Version,
Close,
}Variants§
WalletCreate
Fields
§
btc_backend: Option<BtcBackend>BTC chain-source backend (btc only).
LnWalletCreate
WalletClose
WalletList
Balance
Receive
Fields
ReceiveClaim
CashuSend
Fields
CashuReceive
Send
Fields
Restore
WalletShowSeed
HistoryList
Fields
HistoryStatus
HistoryUpdate
LimitAdd
LimitRemove
LimitList
LimitSet
WalletConfigShow
WalletConfigSet
Fields
WalletConfigTokenAdd
WalletConfigTokenRemove
Config(ConfigPatch)
Version
Close
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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 Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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