Enum RecipeQuoteError
#[non_exhaustive]pub enum RecipeQuoteError {
NoRecipe {
key: String,
},
UnlistedTemplate {
currency: String,
template: String,
listed: Vec<String>,
},
Shape {
template: String,
family: &'static str,
shape: &'static str,
takes: &'static str,
},
MissingWindow {
template: String,
start: NaiveDate,
end: NaiveDate,
},
NoDecision {
template: String,
bank: String,
date: NaiveDate,
},
UnknownTemplate {
code: String,
},
Rungs(RungBuildError),
MissingFx {
curve_id: String,
},
}Expand description
Why a quote sheet could not be bound to a recipe.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoRecipe
The market carries no recipe under the key.
UnlistedTemplate
The sheet quotes a template the recipe does not list.
Fields
Shape
A locator shape the template cannot take.
Fields
MissingWindow
A window the recipe fixes has no quote on the sheet.
Fields
NoDecision
A date on a policy template names no decision in the bank’s schedule, or the last one, whose window the schedule does not close.
UnknownTemplate
The code names no registered template.
Rungs(RungBuildError)
The rung builder refused.
MissingFx
A cross segment needs the pair’s spot in the FX store.
Trait Implementations§
§impl Clone for RecipeQuoteError
impl Clone for RecipeQuoteError
§fn clone(&self) -> RecipeQuoteError
fn clone(&self) -> RecipeQuoteError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RecipeQuoteError
impl Debug for RecipeQuoteError
§impl Display for RecipeQuoteError
impl Display for RecipeQuoteError
§impl Error for RecipeQuoteError
impl Error for RecipeQuoteError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl From<RungBuildError> for RecipeQuoteError
impl From<RungBuildError> for RecipeQuoteError
§fn from(e: RungBuildError) -> Self
fn from(e: RungBuildError) -> Self
Converts to this type from the input type.
§impl PartialEq for RecipeQuoteError
impl PartialEq for RecipeQuoteError
§fn eq(&self, other: &RecipeQuoteError) -> bool
fn eq(&self, other: &RecipeQuoteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecipeQuoteError
Auto Trait Implementations§
impl Freeze for RecipeQuoteError
impl RefUnwindSafe for RecipeQuoteError
impl Send for RecipeQuoteError
impl Sync for RecipeQuoteError
impl Unpin for RecipeQuoteError
impl UnsafeUnpin for RecipeQuoteError
impl UnwindSafe for RecipeQuoteError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more