pub enum AaveReport {
Activated {
chain_id: u64,
chain_label: &'static str,
market_id: i64,
market_name: String,
created: bool,
},
Deactivated {
chain_id: u64,
market_id: Option<i64>,
outcome: DeactivateOutcome,
},
Updated {
entries: Vec<AaveUpdateEntry>,
},
Position {
user_address: String,
market: String,
chain_id: u64,
collateral: Vec<AavePositionLine>,
debt: Vec<AavePositionLine>,
},
PositionNoMarket {
market: String,
chain_id: u64,
},
PositionNoUser {
user_address: String,
market: String,
chain_id: u64,
},
}Expand description
The typed result of an aave command.
Variants§
Activated
aave activate.
Fields
Deactivated
aave deactivate.
Fields
§
outcome: DeactivateOutcomeThe outcome.
Updated
aave update.
Fields
§
entries: Vec<AaveUpdateEntry>Per-market outcomes.
Position
aave position show.
Fields
§
collateral: Vec<AavePositionLine>Collateral positions.
§
debt: Vec<AavePositionLine>Debt positions.
PositionNoMarket
aave position show found no market.
PositionNoUser
aave position show found no user row.
Implementations§
Source§impl AaveReport
impl AaveReport
Sourcepub fn render_lines(&self) -> Vec<String>
pub fn render_lines(&self) -> Vec<String>
The operator-facing lines for this report.
Trait Implementations§
Source§impl Clone for AaveReport
impl Clone for AaveReport
Source§impl Debug for AaveReport
impl Debug for AaveReport
impl Eq for AaveReport
Source§impl PartialEq for AaveReport
impl PartialEq for AaveReport
impl StructuralPartialEq for AaveReport
Auto Trait Implementations§
impl Freeze for AaveReport
impl RefUnwindSafe for AaveReport
impl Send for AaveReport
impl Sync for AaveReport
impl Unpin for AaveReport
impl UnsafeUnpin for AaveReport
impl UnwindSafe for AaveReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more