Type Alias zombienet_sdk::PjsResult

source ·
pub type PjsResult = Result<Value, String>;
Expand description

pjs-rs success Result type

Represent the possible states returned from a successfully call to pjs-rs

Ok(value) -> Deserialized return value into a serde_json::Value Err(msg) -> Execution of the script finish Ok, but the returned value can’t be deserialize into a serde_json::Value

Aliased Type§

enum PjsResult {
    Ok(Value),
    Err(String),
}

Variants§

§1.0.0

Ok(Value)

Contains the success value

§1.0.0

Err(String)

Contains the error value