pub enum Outcome {
Entity(Uuid),
Done,
Value(Rational64),
Page(QueryPage),
Balance(ReportData),
Activity(ActivityData),
Breakdown(BreakdownData),
Draft(TemplateDraft),
}Variants§
Entity(Uuid)
A mutation’s stored entity.
Done
A mutation without an entity to report.
Value(Rational64)
The convert form’s amount in the target commodity.
Page(QueryPage)
A query form’s page.
Balance(ReportData)
The report-balance form’s report.
Activity(ActivityData)
The report-activity form’s report.
Breakdown(BreakdownData)
The report-category form’s report.
Draft(TemplateDraft)
The template-test form’s rendered draft.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn to_value(&self) -> Result<EvalValue>
pub fn to_value(&self) -> Result<EvalValue>
What submit-form returns: the UUID string, t for a mutation without an entity, the convert ratio as a number, the page plist
(:rows ((:id … :date … :date-text … :note … :amount …) …) :has-more t|nil :total n) as a list with
keyword keys, a report’s plist text (see format_balance), or the template draft plist (see TemplateDraft::to_value).
§Errors
A page total beyond i32.
Trait Implementations§
impl Eq for Outcome
Source§impl From<ReportOutcome> for Outcome
impl From<ReportOutcome> for Outcome
Source§fn from(report: ReportOutcome) -> Self
fn from(report: ReportOutcome) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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