Balance
public struct Balance
extension Balance: CustomStringConvertible
extension Balance: Equatable
An assert that the balance of a given commodity is correct for the accout at the end of the given day
-
Date of the Balance
Declaration
Swift
public let date: Date -
AccountNameof the BalanceDeclaration
Swift
public let accountName: AccountName -
MetaData of the Balance
Declaration
Swift
public let metaData: [String : String] -
Create a Balance
Declaration
Swift
public init(date: Date, accountName: AccountName, amount: Amount, metaData: [String : String] = [:])Parameters
datedate of the balance
accountaccount
amountamount
-
Returns the price string for the ledger.
Declaration
Swift
public var description: String { get } -
Retuns if the two prices are equal
Declaration
Swift
public static func == (lhs: Balance, rhs: Balance) -> BoolParameters
lhsprice 1
rhsprice 2
Return Value
true if the prices are equal, false otherwise
View on GitHub
Install in Dash
Balance Structure Reference