pub enum Output {
Show 28 variants
WalletCreated {
id: String,
wallet: String,
network: Network,
address: String,
mnemonic: Option<String>,
trace: Trace,
},
WalletClosed {
id: String,
wallet: String,
trace: Trace,
},
WalletList {
id: String,
wallets: Vec<WalletSummary>,
trace: Trace,
},
WalletBalances {
id: String,
wallets: Vec<WalletBalanceItem>,
trace: Trace,
},
ReceiveInfo {
id: String,
wallet: String,
receive_info: ReceiveInfo,
trace: Trace,
},
ReceiveClaimed {
id: String,
wallet: String,
amount: Amount,
trace: Trace,
},
CashuSent {
id: String,
wallet: String,
transaction_id: String,
status: TxStatus,
fee: Option<Amount>,
token: String,
trace: Trace,
},
History {
id: String,
items: Vec<HistoryRecord>,
trace: Trace,
},
HistoryStatus {
id: String,
transaction_id: String,
status: TxStatus,
confirmations: Option<u32>,
preimage: Option<String>,
item: Option<HistoryRecord>,
trace: Trace,
},
HistoryUpdated {
id: String,
wallets_synced: usize,
records_scanned: usize,
records_added: usize,
records_updated: usize,
trace: Trace,
},
LimitAdded {
id: String,
rule_id: String,
trace: Trace,
},
LimitRemoved {
id: String,
rule_id: String,
trace: Trace,
},
LimitStatus {
id: String,
limits: Vec<SpendLimitStatus>,
downstream: Vec<DownstreamLimitNode>,
trace: Trace,
},
LimitExceeded {
id: String,
rule_id: String,
scope: SpendScope,
scope_key: String,
spent: u64,
max_spend: u64,
token: Option<String>,
remaining_s: u64,
origin: Option<String>,
trace: Trace,
},
CashuReceived {
id: String,
wallet: String,
amount: Amount,
trace: Trace,
},
Restored {
id: String,
wallet: String,
unspent: u64,
spent: u64,
pending: u64,
unit: String,
trace: Trace,
},
WalletSeed {
id: String,
wallet: String,
mnemonic_secret: String,
trace: Trace,
},
Sent {
id: String,
wallet: String,
transaction_id: String,
amount: Amount,
fee: Option<Amount>,
preimage: Option<String>,
trace: Trace,
},
WalletConfig {
id: String,
wallet: String,
config: WalletMetadata,
trace: Trace,
},
WalletConfigUpdated {
id: String,
wallet: String,
trace: Trace,
},
WalletConfigTokenAdded {
id: String,
wallet: String,
symbol: String,
address: String,
decimals: u8,
trace: Trace,
},
WalletConfigTokenRemoved {
id: String,
wallet: String,
symbol: String,
trace: Trace,
},
Error {
id: Option<String>,
error_code: String,
error: String,
hint: Option<String>,
retryable: bool,
trace: Trace,
},
DryRun {
id: Option<String>,
command: String,
params: Value,
trace: Trace,
},
Config(RuntimeConfig),
Version {
version: String,
trace: PongTrace,
},
Close {
message: String,
trace: CloseTrace,
},
Log {
event: String,
request_id: Option<String>,
version: Option<String>,
argv: Option<Vec<String>>,
config: Option<Value>,
args: Option<Value>,
env: Option<Value>,
trace: Trace,
},
}Variants§
WalletCreated
Fields
WalletClosed
WalletList
WalletBalances
ReceiveInfo
ReceiveClaimed
CashuSent
Fields
History
HistoryStatus
Fields
§
item: Option<HistoryRecord>HistoryUpdated
Fields
LimitAdded
LimitRemoved
LimitStatus
LimitExceeded
Fields
§
scope: SpendScopeCashuReceived
Restored
WalletSeed
Sent
Fields
WalletConfig
WalletConfigUpdated
WalletConfigTokenAdded
WalletConfigTokenRemoved
Error
Fields
DryRun
Config(RuntimeConfig)
Version
Close
Log
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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