Skip to main content

Output

Enum Output 

Source
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

§wallet: String
§network: Network
§address: String
§mnemonic: Option<String>
§trace: Trace
§

WalletClosed

Fields

§wallet: String
§trace: Trace
§

WalletList

Fields

§trace: Trace
§

WalletBalances

Fields

§trace: Trace
§

ReceiveInfo

Fields

§wallet: String
§receive_info: ReceiveInfo
§trace: Trace
§

ReceiveClaimed

Fields

§wallet: String
§amount: Amount
§trace: Trace
§

CashuSent

Fields

§wallet: String
§transaction_id: String
§status: TxStatus
§token: String
§trace: Trace
§

History

Fields

§trace: Trace
§

HistoryStatus

Fields

§transaction_id: String
§status: TxStatus
§confirmations: Option<u32>
§preimage: Option<String>
§trace: Trace
§

HistoryUpdated

Fields

§wallets_synced: usize
§records_scanned: usize
§records_added: usize
§records_updated: usize
§trace: Trace
§

LimitAdded

Fields

§rule_id: String
§trace: Trace
§

LimitRemoved

Fields

§rule_id: String
§trace: Trace
§

LimitStatus

Fields

§trace: Trace
§

LimitExceeded

Fields

§rule_id: String
§scope_key: String
§spent: u64
§max_spend: u64
§remaining_s: u64
§origin: Option<String>
§trace: Trace
§

CashuReceived

Fields

§wallet: String
§amount: Amount
§trace: Trace
§

Restored

Fields

§wallet: String
§unspent: u64
§spent: u64
§pending: u64
§unit: String
§trace: Trace
§

WalletSeed

Fields

§wallet: String
§mnemonic_secret: String
§trace: Trace
§

Sent

Fields

§wallet: String
§transaction_id: String
§amount: Amount
§preimage: Option<String>
§trace: Trace
§

WalletConfig

Fields

§wallet: String
§trace: Trace
§

WalletConfigUpdated

Fields

§wallet: String
§trace: Trace
§

WalletConfigTokenAdded

Fields

§wallet: String
§symbol: String
§address: String
§decimals: u8
§trace: Trace
§

WalletConfigTokenRemoved

Fields

§wallet: String
§symbol: String
§trace: Trace
§

Error

Fields

§error_code: String
§error: String
§retryable: bool
§trace: Trace
§

DryRun

Fields

§command: String
§params: Value
§trace: Trace
§

Config(RuntimeConfig)

§

Version

Fields

§version: String
§

Close

Fields

§message: String
§

Log

Fields

§event: String
§request_id: Option<String>
§version: Option<String>
§config: Option<Value>
§trace: Trace

Trait Implementations§

Source§

impl Debug for Output

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for Output

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more