pub struct PrefilledRow {
pub amount: String,
pub from_account: String,
pub from_commodity: String,
pub to_account: String,
pub to_commodity: String,
pub amount_converted: Option<String>,
pub from_tags: Vec<PrefilledTag>,
pub to_tags: Vec<PrefilledTag>,
}Expand description
One transfer row for the create form. Account/commodity are uuids; the
browser resolves display names via /api/account/list (as the
from-account prefill already does), so the server side stays name-free.
Fields§
§amount: String§from_account: String§from_commodity: String§to_account: String§to_commodity: String§amount_converted: Option<String>Set only when the two legs carry different commodities (a conversion).
Tags the template attached to the debit (from) leg of this row.
Tags the template attached to the credit (to) leg of this row.
Trait Implementations§
Source§impl Debug for PrefilledRow
impl Debug for PrefilledRow
Source§impl PartialEq for PrefilledRow
impl PartialEq for PrefilledRow
Source§impl Serialize for PrefilledRow
impl Serialize for PrefilledRow
impl Eq for PrefilledRow
impl StructuralPartialEq for PrefilledRow
Auto Trait Implementations§
impl Freeze for PrefilledRow
impl RefUnwindSafe for PrefilledRow
impl Send for PrefilledRow
impl Sync for PrefilledRow
impl Unpin for PrefilledRow
impl UnsafeUnpin for PrefilledRow
impl UnwindSafe for PrefilledRow
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<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>
§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