Macro we_cdk::parse_bool

source ·
macro_rules! parse_bool {
    ($value:expr) => { ... };
}
Expand description

Converts a string representation of a boolean to an equivalent logical value

§Usage

use we_cdk::*;

#[action]
fn _constructor() {
    let result: Boolean = parse_bool!("true");
}