Trait 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§