mind_sdk_cli 0.1.2

Mind Network Rust SDK
Documentation
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
pub struct CliResultJson {
    pub app: String,
    pub command: String,
    pub arg: String,
    pub status: bool,
    pub result: String,
    pub note: String,
}

pub fn cli_default_json_result(app: String) -> CliResultJson {
    let r = CliResultJson {
        app: app.to_string(),
        command: "".to_string(),
        arg: "".to_string(),
        status: true,
        result: "".to_string(),
        note: "".to_string(),
    };
    return r;
}

pub fn cli_default_json_result_fvn() -> CliResultJson {
    let r = CliResultJson {
        app: "fvn".to_string(),
        command: "".to_string(),
        arg: "".to_string(),
        status: true,
        result: "".to_string(),
        note: "".to_string(),
    };
    return r;
}

pub fn cli_default_json_result_fcn() -> CliResultJson {
    let r = CliResultJson {
        app: "fcn".to_string(),
        command: "".to_string(),
        arg: "".to_string(),
        status: true,
        result: "".to_string(),
        note: "".to_string(),
    };
    return r;
}

pub fn cli_default_json_result_fdn() -> CliResultJson {
    let r = CliResultJson {
        app: "fdn".to_string(),
        command: "".to_string(),
        arg: "".to_string(),
        status: true,
        result: "".to_string(),
        note: "".to_string(),
    };
    return r;
}