Enum RenderMode
pub enum RenderMode {
Scalar,
AccountList,
CommodityList,
ConfigValue,
BoolSuccess,
Silent,
BalanceList,
TransactionList,
SshKeyList,
ReportBalance {
chart: String,
},
ReportActivity {
chart: String,
},
ReportBreakdown {
chart: String,
},
}Expand description
How the value part of a wire reply is rendered.
Variants§
Scalar
Print the scalar string value (or its formatted form) directly.
AccountList
pair:Account list — print each account’s :name, one per line.
CommodityList
pair:Commodity list — print each as {symbol} - {name}, one per line.
ConfigValue
The value is a (:config-value <v>) plist string: extract and print <v>.
BoolSuccess
An i32/bool success flag: print true for a non-zero/true value, else false.
Silent
Produce no output (used for mutations whose result carries no output).
BalanceList
pair:string balance list from get-balances.
TransactionList
pair:Transaction entity list from list-transactions.
SshKeyList
pair:SshKey entity list from list-ssh-keys.
ReportBalance
Balance report plist string → chart.
ReportActivity
Activity report plist string → chart.
ReportBreakdown
Category breakdown plist string → chart.
Auto Trait Implementations§
impl Freeze for RenderMode
impl RefUnwindSafe for RenderMode
impl Send for RenderMode
impl Sync for RenderMode
impl Unpin for RenderMode
impl UnsafeUnpin for RenderMode
impl UnwindSafe for RenderMode
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more