spl_token_2022::offchain

Type Alias AccountDataResult

Source
pub type AccountDataResult = Result<Option<Vec<u8>>, Box<dyn Error + Send + Sync>>;
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 + Send + Sync>),
}

Variants§

§1.0.0

Ok(Option<Vec<u8>>)

Contains the success value

§1.0.0

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

Contains the error value