Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub enum PricingCatalogError {
Json(Error),
DuplicateModelAlias {
model: String,
},
UnsupportedVersion {
version: u32,
},
EmptyField {
entry_index: usize,
field: String,
},
InvalidRate {
entry_index: usize,
field: String,
value: f64,
},
FileRead {
path: PathBuf,
source: Error,
},
LockPoisoned(String),
}
Errors produced while parsing or validating a pricing catalog.
Json(Error)Json(Error)
The catalog was not valid JSON for the catalog schema.
DuplicateModelAliasDuplicateModelAlias
Two entries or aliases normalize to the same model key.
model: StringNormalized model key that appeared more than once.
UnsupportedVersionUnsupportedVersion
The catalog schema version is not supported by this Relay build.
version: u32Version number from the catalog payload.
EmptyFieldEmptyField
A required text field was empty.
entry_index: usizeZero-based index of the invalid catalog entry.
field: StringName of the invalid field.
InvalidRateInvalidRate
A price was negative or non-finite.
entry_index: usizeZero-based index of the invalid catalog entry.
field: StringName of the invalid rate field.
value: f64Invalid field value.
FileReadFileRead
A pricing catalog file could not be read.
path: PathBufCatalog path.
source: ErrorUnderlying I/O error.
LockPoisoned(String)LockPoisoned(String)
The active pricing resolver lock was poisoned.
impl Debug for PricingCatalogErrorimpl Debug for PricingCatalogError
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for PricingCatalogErrorimpl Display for PricingCatalogError
fmtfn fmt(&self, __formatter: &mut Formatter<'_>) -> Result
impl Error for PricingCatalogErrorimpl Error for PricingCatalogError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
descriptionfn description(&self) -> &str
causefn cause(&self) -> Option<&dyn Error>
providefn provide<'a>(&'a self, request: &mut Request<'a>)
impl From< Error> for PricingCatalogErrorimpl From<Error> for PricingCatalogError
fromfn from(source: Error) -> Self