pub struct RpcViewAccountResponse {
pub amount: NearToken,
pub block_hash: CryptoHash,
pub block_height: u64,
pub code_hash: CryptoHash,
pub global_contract_account_id: Option<AccountId>,
pub global_contract_hash: Option<CryptoHash>,
pub locked: NearToken,
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",
"block_hash",
"block_height",
"code_hash",
"locked",
"storage_usage"
],
"properties": {
"amount": {
"$ref": "#/components/schemas/NearToken"
},
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"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": {
"$ref": "#/components/schemas/NearToken"
},
"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: NearToken§block_hash: CryptoHash§block_height: u64§code_hash: CryptoHash§global_contract_account_id: Option<AccountId>§global_contract_hash: Option<CryptoHash>§locked: NearToken§storage_paid_at: u64TODO(2271): deprecated.
storage_usage: u64Trait Implementations§
Source§impl Clone for RpcViewAccountResponse
impl Clone for RpcViewAccountResponse
Source§fn clone(&self) -> RpcViewAccountResponse
fn clone(&self) -> RpcViewAccountResponse
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 RpcViewAccountResponse
impl Debug for RpcViewAccountResponse
Source§impl<'de> Deserialize<'de> for RpcViewAccountResponse
impl<'de> Deserialize<'de> for RpcViewAccountResponse
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<&RpcViewAccountResponse> for RpcViewAccountResponse
impl From<&RpcViewAccountResponse> for RpcViewAccountResponse
Source§fn from(value: &RpcViewAccountResponse) -> Self
fn from(value: &RpcViewAccountResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewAccountResponse
impl RefUnwindSafe for RpcViewAccountResponse
impl Send for RpcViewAccountResponse
impl Sync for RpcViewAccountResponse
impl Unpin for RpcViewAccountResponse
impl UnsafeUnpin for RpcViewAccountResponse
impl UnwindSafe for RpcViewAccountResponse
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