Struct CrossRecipeStepError
pub struct CrossRecipeStepError {
pub key: CollateralSpec,
pub kind: String,
}Expand description
A cross-collateral-keyed recipe carried a policy path or an explicit
window — rejected at CurveRecipes::insert. Policy steps shape an
index’s own-currency short end; under a cross key only discounting varies
by collateral.
Fields§
§key: CollateralSpecThe cross key the recipe was inserted under.
kind: StringWhat was declared: "policy" or "window".
Trait Implementations§
§impl Clone for CrossRecipeStepError
impl Clone for CrossRecipeStepError
§fn clone(&self) -> CrossRecipeStepError
fn clone(&self) -> CrossRecipeStepError
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 CrossRecipeStepError
impl Debug for CrossRecipeStepError
§impl Display for CrossRecipeStepError
impl Display for CrossRecipeStepError
impl Eq for CrossRecipeStepError
§impl Error for CrossRecipeStepError
impl Error for CrossRecipeStepError
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 CrossRecipeStepError
impl PartialEq for CrossRecipeStepError
§fn eq(&self, other: &CrossRecipeStepError) -> bool
fn eq(&self, other: &CrossRecipeStepError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrossRecipeStepError
Auto Trait Implementations§
impl Freeze for CrossRecipeStepError
impl RefUnwindSafe for CrossRecipeStepError
impl Send for CrossRecipeStepError
impl Sync for CrossRecipeStepError
impl Unpin for CrossRecipeStepError
impl UnsafeUnpin for CrossRecipeStepError
impl UnwindSafe for CrossRecipeStepError
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