pub struct LedgerMetaDto {
pub ledger_id: u64,
pub creditor: BorderlessId,
pub debitor: BorderlessId,
pub len: u64,
pub balances: HashMap<Currency, f64>,
pub contract_id: Option<ContractId>,
}Expand description
Meta information about this ledger (DTO for JSON-APIs)
Contains the ledger-id, which is useful for later queries,
- converts the amount
Fields§
§ledger_id: u64ID that is used for this ledger
creditor: BorderlessIdCreditor side
debitor: BorderlessIdDebitor side
len: u64Length of the ledger
balances: HashMap<Currency, f64>Balances by currency ( values are normalized, so 1€ = 1.00 €)
contract_id: Option<ContractId>(Optional) Contract-ID, if the query was for a single contract-id only.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LedgerMetaDto
impl RefUnwindSafe for LedgerMetaDto
impl Send for LedgerMetaDto
impl Sync for LedgerMetaDto
impl Unpin for LedgerMetaDto
impl UnsafeUnpin for LedgerMetaDto
impl UnwindSafe for LedgerMetaDto
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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