models/transaction_type
Types
pub type TransactionType {
Purchase
Sell
}
Constructors
-
Purchase
-
Sell
Values
pub fn decoder() -> decode.Decoder(TransactionType)
pub fn encode(transaction_type: TransactionType) -> json.Json
pub fn parse(value: String) -> Result(TransactionType, Nil)
pub fn to_string(transaction_type: TransactionType) -> String