pub struct AccountValue {
pub total_value: Asset,
pub breakdown: Vec<(AssetInfo, Uint128)>,
}
Fields§
§total_value: Asset
the total value of this account in the base denomination
breakdown: Vec<(AssetInfo, Uint128)>
Vec of asset information and their value in the base asset denomination
Trait Implementations§
Source§impl Clone for AccountValue
impl Clone for AccountValue
Source§fn clone(&self) -> AccountValue
fn clone(&self) -> AccountValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccountValue
impl Debug for AccountValue
Source§impl<'de> Deserialize<'de> for AccountValue
impl<'de> Deserialize<'de> for AccountValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AccountValue
impl JsonSchema for AccountValue
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for AccountValue
impl PartialEq for AccountValue
Source§impl Serialize for AccountValue
impl Serialize for AccountValue
impl StructuralPartialEq for AccountValue
Auto Trait Implementations§
impl Freeze for AccountValue
impl RefUnwindSafe for AccountValue
impl Send for AccountValue
impl Sync for AccountValue
impl Unpin for AccountValue
impl UnwindSafe for AccountValue
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