Trait aleo_rust::Credits

source ·
pub trait Credits {
    // Required method
    fn microcredits(&self) -> Result<u64>;

    // Provided method
    fn credits(&self) -> Result<f64> { ... }
}
Expand description

A trait providing convenient methods for accessing the amount of Aleo present in a record

Required Methods§

source

fn microcredits(&self) -> Result<u64>

Get the amount of microcredits in the record if the record possesses Aleo credits

Provided Methods§

source

fn credits(&self) -> Result<f64>

Get the amount of credits in the record if the record possesses Aleo credits

Implementors§