Skip to main content

ProfileError

Type Alias ProfileError 

Source
pub type ProfileError = ProfileRegistryError;
Expand description

Compatibility name retained for existing qs_backtest::profile callers.

Aliased Type§

pub enum ProfileError {
    Io(Error),
    Parse(Error),
    DuplicateName(String),
    TargetRatioMismatch {
        profile: String,
        targets: usize,
        ratios: usize,
    },
    RatioSumExceeded {
        profile: String,
        sum: f64,
    },
    RatioSumIncomplete {
        profile: String,
        sum: f64,
    },
    ZeroRatio {
        profile: String,
    },
    ZeroTargetIndex {
        profile: String,
    },
    DuplicateTargetIndex {
        profile: String,
        index: usize,
    },
    InvalidConfiguration {
        profile: String,
        reason: String,
    },
    NotFound(String),
}

Variants§

§

Io(Error)

§

Parse(Error)

§

DuplicateName(String)

§

TargetRatioMismatch

Fields

§profile: String
§targets: usize
§ratios: usize
§

RatioSumExceeded

Fields

§profile: String
§sum: f64
§

RatioSumIncomplete

Fields

§profile: String
§sum: f64
§

ZeroRatio

Fields

§profile: String
§

ZeroTargetIndex

Fields

§profile: String
§

DuplicateTargetIndex

Fields

§profile: String
§index: usize
§

InvalidConfiguration

Fields

§profile: String
§reason: String
§

NotFound(String)