Struct DegenerateHub
pub struct DegenerateHub {
pub key: CollateralSpec,
pub via: Currency,
}Expand description
A triangulated discount declared through a hub that is one of its key’s own currencies, which collapses the triangle onto the key itself.
Fields§
§key: CollateralSpecThe key the declaration was for.
via: CurrencyThe hub as declared.
Trait Implementations§
§impl Clone for DegenerateHub
impl Clone for DegenerateHub
§fn clone(&self) -> DegenerateHub
fn clone(&self) -> DegenerateHub
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 DegenerateHub
impl Debug for DegenerateHub
§impl Display for DegenerateHub
impl Display for DegenerateHub
impl Eq for DegenerateHub
§impl Error for DegenerateHub
impl Error for DegenerateHub
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 DegenerateHub
impl PartialEq for DegenerateHub
impl StructuralPartialEq for DegenerateHub
Auto Trait Implementations§
impl Freeze for DegenerateHub
impl RefUnwindSafe for DegenerateHub
impl Send for DegenerateHub
impl Sync for DegenerateHub
impl Unpin for DegenerateHub
impl UnsafeUnpin for DegenerateHub
impl UnwindSafe for DegenerateHub
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