pub struct StateChangeValueViewContentSubtype0 {
pub account_id: AccountId,
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": [
"account_id",
"amount",
"code_hash",
"locked",
"storage_usage"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"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§
§account_id: AccountId§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 StateChangeValueViewContentSubtype0
impl Clone for StateChangeValueViewContentSubtype0
Source§fn clone(&self) -> StateChangeValueViewContentSubtype0
fn clone(&self) -> StateChangeValueViewContentSubtype0
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<'de> Deserialize<'de> for StateChangeValueViewContentSubtype0
impl<'de> Deserialize<'de> for StateChangeValueViewContentSubtype0
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateChangeValueViewContentSubtype0, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateChangeValueViewContentSubtype0, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StateChangeValueViewContentSubtype0> for StateChangeValueViewContentSubtype0
impl From<&StateChangeValueViewContentSubtype0> for StateChangeValueViewContentSubtype0
Source§fn from(
value: &StateChangeValueViewContentSubtype0,
) -> StateChangeValueViewContentSubtype0
fn from( value: &StateChangeValueViewContentSubtype0, ) -> StateChangeValueViewContentSubtype0
Converts to this type from the input type.
Source§impl Serialize for StateChangeValueViewContentSubtype0
impl Serialize for StateChangeValueViewContentSubtype0
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 StateChangeValueViewContentSubtype0
impl RefUnwindSafe for StateChangeValueViewContentSubtype0
impl Send for StateChangeValueViewContentSubtype0
impl Sync for StateChangeValueViewContentSubtype0
impl Unpin for StateChangeValueViewContentSubtype0
impl UnwindSafe for StateChangeValueViewContentSubtype0
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