Skip to main content

Result

Type Alias Result 

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

A convenience Result type alias for the application.

This type alias uses AppError as the default error type, simplifying function signatures throughout the codebase.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(AppError)

Contains the error value