Struct CrossRecipeProjectionError
pub struct CrossRecipeProjectionError {
pub key: CollateralSpec,
pub index: String,
}Expand description
A cross-collateral-keyed recipe carried a projection entry — rejected at
CurveRecipes::insert. The projection namespace is flat and index-keyed: an
index projects off its own-currency curves, so a cross recipe’s projection
entry would silently overwrite the own-currency projection pin for every trade
in a context. Only discounting varies by collateral.
Fields§
§key: CollateralSpecThe cross key the recipe was inserted under.
index: StringThe offending projection index (the first, when several).
Trait Implementations§
§impl Clone for CrossRecipeProjectionError
impl Clone for CrossRecipeProjectionError
§fn clone(&self) -> CrossRecipeProjectionError
fn clone(&self) -> CrossRecipeProjectionError
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 CrossRecipeProjectionError
impl Debug for CrossRecipeProjectionError
§impl Display for CrossRecipeProjectionError
impl Display for CrossRecipeProjectionError
impl Eq for CrossRecipeProjectionError
§impl Error for CrossRecipeProjectionError
impl Error for CrossRecipeProjectionError
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 PartialEq for CrossRecipeProjectionError
impl PartialEq for CrossRecipeProjectionError
§fn eq(&self, other: &CrossRecipeProjectionError) -> bool
fn eq(&self, other: &CrossRecipeProjectionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrossRecipeProjectionError
Auto Trait Implementations§
impl Freeze for CrossRecipeProjectionError
impl RefUnwindSafe for CrossRecipeProjectionError
impl Send for CrossRecipeProjectionError
impl Sync for CrossRecipeProjectionError
impl Unpin for CrossRecipeProjectionError
impl UnsafeUnpin for CrossRecipeProjectionError
impl UnwindSafe for CrossRecipeProjectionError
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