pub struct StateChangeWithCauseViewVariant0Change {
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": {
"access_key": false,
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"amount": {
"type": "string"
},
"code_base64": false,
"code_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"gas_key": false,
"global_contract_account_id": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountId"
},
{
"type": "null"
}
]
},
"global_contract_hash": {
"anyOf": [
{
"$ref": "#/components/schemas/CryptoHash"
},
{
"type": "null"
}
]
},
"index": false,
"key_base64": false,
"locked": {
"type": "string"
},
"nonce": false,
"public_key": false,
"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
},
"value_base64": false
}
}
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: u64
TODO(2271): deprecated.
storage_usage: u64
Trait Implementations§
Source§impl Clone for StateChangeWithCauseViewVariant0Change
impl Clone for StateChangeWithCauseViewVariant0Change
Source§fn clone(&self) -> StateChangeWithCauseViewVariant0Change
fn clone(&self) -> StateChangeWithCauseViewVariant0Change
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<'de> Deserialize<'de> for StateChangeWithCauseViewVariant0Change
impl<'de> Deserialize<'de> for StateChangeWithCauseViewVariant0Change
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<&StateChangeWithCauseViewVariant0Change> for StateChangeWithCauseViewVariant0Change
impl From<&StateChangeWithCauseViewVariant0Change> for StateChangeWithCauseViewVariant0Change
Source§fn from(value: &StateChangeWithCauseViewVariant0Change) -> Self
fn from(value: &StateChangeWithCauseViewVariant0Change) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StateChangeWithCauseViewVariant0Change
impl RefUnwindSafe for StateChangeWithCauseViewVariant0Change
impl Send for StateChangeWithCauseViewVariant0Change
impl Sync for StateChangeWithCauseViewVariant0Change
impl Unpin for StateChangeWithCauseViewVariant0Change
impl UnwindSafe for StateChangeWithCauseViewVariant0Change
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