pub enum RenderMode {
Scalar,
AccountList,
CommodityList,
ConfigValue,
BoolSuccess,
BalanceList,
SshKeyList,
TagList,
}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.
BalanceList
pair:string balance list from get-balances.
SshKeyList
pair:SshKey entity list from list-ssh-keys.
TagList
pair:Tag list from list-tags — print {id} {name}={value} plus the description.
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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