use-transaction 0.1.0

Generic financial transaction primitives for RustUse finance crates
Documentation
  • Coverage
  • 100%
    41 out of 41 items documented1 out of 30 items with examples
  • Size
  • Source code size: 13.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 909.38 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-finance
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-transaction

Generic financial transaction primitives for RustUse finance crates.

use-transaction provides small identifiers, date wrappers, statuses, directions, and a generic amount-bearing transaction type. It does not model market trades.

Example

use use_amount::Amount;
use use_transaction::{Transaction, TransactionDate, TransactionDirection, TransactionId};

let transaction = Transaction::new(
    TransactionId::new("txn-1001")?,
    Amount::from_minor_units(12_345, 2)?,
    TransactionDate::new("2026-06-07")?,
    TransactionDirection::Inflow,
);

assert_eq!(transaction.id().as_str(), "txn-1001");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for general financial transaction vocabulary. It does not represent market trades, orders, fills, exchange events, broker APIs, or market-data activity.

License

Licensed under either MIT or Apache-2.0.