pub enum CmdResult {
Show 15 variants
String(String),
Rational(Rational64),
Uuid(Uuid),
Bool(bool),
Data(Vec<u8>),
Lines(Vec<String>),
Entity(FinanceEntity),
Entities(Vec<FinanceEntity>),
TaggedEntities {
entities: Vec<(FinanceEntity, HashMap<String, FinanceEntity>)>,
pagination: Option<PaginationInfo>,
},
CommodityInfoList(Vec<CommodityInfo>),
MultiCurrencyBalance(Vec<(Commodity, Rational64)>),
Report(ReportData),
Breakdown(BreakdownData),
Activity(ActivityData),
SshKeys(Vec<SshKeyRecord>),
}Variants§
String(String)
Rational(Rational64)
Uuid(Uuid)
Bool(bool)
Data(Vec<u8>)
Lines(Vec<String>)
Entity(FinanceEntity)
Entities(Vec<FinanceEntity>)
TaggedEntities
Fields
§
entities: Vec<(FinanceEntity, HashMap<String, FinanceEntity>)>§
pagination: Option<PaginationInfo>CommodityInfoList(Vec<CommodityInfo>)
MultiCurrencyBalance(Vec<(Commodity, Rational64)>)
Report(ReportData)
Breakdown(BreakdownData)
Activity(ActivityData)
SshKeys(Vec<SshKeyRecord>)
Implementations§
Source§impl CmdResult
impl CmdResult
pub fn as_lines(&self) -> LinesView<'_>
pub fn as_lines_mut(&mut self) -> LinesViewMut<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdResult
impl RefUnwindSafe for CmdResult
impl Send for CmdResult
impl Sync for CmdResult
impl Unpin for CmdResult
impl UnsafeUnpin for CmdResult
impl UnwindSafe for CmdResult
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