Type Alias cosmwasm_std::StdResult

source ·
pub type StdResult<T> = Result<T, StdError>;
Expand description

The return type for init, execute and query. Since the error type cannot be serialized to JSON, this is only available within the contract and its unit tests.

The prefix “Std” means “the standard result within the standard library”. This is not the only result/error type in cosmwasm-std.

Aliased Type§

enum StdResult<T> {
    Ok(T),
    Err(StdError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StdError)

Contains the error value