Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, GhostError>;
Expand description

A specialized Result type for Ghost API operations.

This type is used throughout the crate for any operation that may produce a GhostError.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(GhostError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(GhostError)

Contains the error value