pub struct AccountView {
pub amount: String,
pub code_hash: CryptoHash,
pub global_contract_account_id: Option<AccountId>,
pub global_contract_hash: Option<CryptoHash>,
pub locked: String,
pub storage_paid_at: u64,
pub storage_usage: u64,
}Expand description
A view of the account
JSON schema
{
"description": "A view of the account",
"type": "object",
"required": [
"amount",
"code_hash",
"locked",
"storage_usage"
],
"properties": {
"amount": {
"type": "string"
},
"code_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"global_contract_account_id": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/AccountId"
}
]
}
]
},
"global_contract_hash": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
}
]
},
"locked": {
"type": "string"
},
"storage_paid_at": {
"description": "TODO(2271): deprecated.",
"default": 0,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"storage_usage": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§amount: String§code_hash: CryptoHash§global_contract_account_id: Option<AccountId>§global_contract_hash: Option<CryptoHash>§locked: String§storage_paid_at: u64TODO(2271): deprecated.
storage_usage: u64Trait Implementations§
Source§impl Clone for AccountView
impl Clone for AccountView
Source§fn clone(&self) -> AccountView
fn clone(&self) -> AccountView
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountView
impl Debug for AccountView
Source§impl<'de> Deserialize<'de> for AccountView
impl<'de> Deserialize<'de> for AccountView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AccountView> for AccountView
impl From<&AccountView> for AccountView
Source§fn from(value: &AccountView) -> AccountView
fn from(value: &AccountView) -> AccountView
Converts to this type from the input type.
Source§impl Serialize for AccountView
impl Serialize for AccountView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AccountView
impl RefUnwindSafe for AccountView
impl Send for AccountView
impl Sync for AccountView
impl Unpin for AccountView
impl UnwindSafe for AccountView
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