pub trait Credits {
// Required method
fn microcredits(&self) -> Result<u64, String>;
// Provided method
fn credits(&self) -> Result<f64, String> { ... }
}
Expand description
A trait providing convenient methods for accessing the amount of Aleo present in a record
Required Methods§
sourcefn microcredits(&self) -> Result<u64, String>
fn microcredits(&self) -> Result<u64, String>
Get the amount of microcredits in the record if the record possesses Aleo credits