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": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountId"
},
{
"type": "null"
}
]
},
"global_contract_hash": {
"anyOf": [
{
"$ref": "#/components/schemas/CryptoHash"
},
{
"type": "null"
}
]
},
"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: u64
TODO(2271): deprecated.
storage_usage: u64
Trait 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§fn clone_from(&mut self, source: &Self)
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<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 From<&AccountView> for AccountView
impl From<&AccountView> for AccountView
Source§fn from(value: &AccountView) -> Self
fn from(value: &AccountView) -> Self
Converts to this type from the input type.
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