Type Alias spl_token_2022::offchain::AccountDataResult

source ·
pub type AccountDataResult = Result<Option<Vec<u8>>, Box<dyn Error + Sync + Send>>;
Expand description

Type representing the output of an account fetching function, for easy chaining between APIs

Aliased Type§

enum AccountDataResult {
    Ok(Option<Vec<u8>>),
    Err(Box<dyn Error + Sync + Send>),
}

Variants§

§1.0.0

Ok(Option<Vec<u8>>)

Contains the success value

§1.0.0

Err(Box<dyn Error + Sync + Send>)

Contains the error value