pub struct StateChangeValueViewContent {
pub subtype_0: Option<StateChangeValueViewContentSubtype0>,
pub subtype_1: Option<StateChangeValueViewContentSubtype1>,
pub subtype_2: Option<StateChangeValueViewContentSubtype2>,
pub subtype_3: Option<StateChangeValueViewContentSubtype3>,
pub subtype_4: Option<StateChangeValueViewContentSubtype4>,
pub subtype_5: Option<StateChangeValueViewContentSubtype5>,
pub subtype_6: Option<StateChangeValueViewContentSubtype6>,
pub subtype_7: Option<StateChangeValueViewContentSubtype7>,
}Expand description
StateChangeValueViewContent
JSON schema
{
"anyOf": [
{
"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
}
}
},
{
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
{
"type": "object",
"required": [
"access_key",
"account_id",
"public_key"
],
"properties": {
"access_key": {
"$ref": "#/components/schemas/AccessKeyView"
},
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
}
}
},
{
"type": "object",
"required": [
"account_id",
"public_key"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
}
}
},
{
"type": "object",
"required": [
"account_id",
"key_base64",
"value_base64"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"key_base64": {
"type": "string",
"format": "bytes"
},
"value_base64": {
"type": "string",
"format": "bytes"
}
}
},
{
"type": "object",
"required": [
"account_id",
"key_base64"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"key_base64": {
"type": "string",
"format": "bytes"
}
}
},
{
"type": "object",
"required": [
"account_id",
"code_base64"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"code_base64": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
}
]
}Fields§
§subtype_0: Option<StateChangeValueViewContentSubtype0>§subtype_1: Option<StateChangeValueViewContentSubtype1>§subtype_2: Option<StateChangeValueViewContentSubtype2>§subtype_3: Option<StateChangeValueViewContentSubtype3>§subtype_4: Option<StateChangeValueViewContentSubtype4>§subtype_5: Option<StateChangeValueViewContentSubtype5>§subtype_6: Option<StateChangeValueViewContentSubtype6>§subtype_7: Option<StateChangeValueViewContentSubtype7>Trait Implementations§
Source§impl Clone for StateChangeValueViewContent
impl Clone for StateChangeValueViewContent
Source§fn clone(&self) -> StateChangeValueViewContent
fn clone(&self) -> StateChangeValueViewContent
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 StateChangeValueViewContent
impl Debug for StateChangeValueViewContent
Source§impl Default for StateChangeValueViewContent
impl Default for StateChangeValueViewContent
Source§fn default() -> StateChangeValueViewContent
fn default() -> StateChangeValueViewContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateChangeValueViewContent
impl<'de> Deserialize<'de> for StateChangeValueViewContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateChangeValueViewContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateChangeValueViewContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&StateChangeValueViewContent> for StateChangeValueViewContent
impl From<&StateChangeValueViewContent> for StateChangeValueViewContent
Source§fn from(value: &StateChangeValueViewContent) -> StateChangeValueViewContent
fn from(value: &StateChangeValueViewContent) -> StateChangeValueViewContent
Converts to this type from the input type.
Source§impl Serialize for StateChangeValueViewContent
impl Serialize for StateChangeValueViewContent
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 StateChangeValueViewContent
impl RefUnwindSafe for StateChangeValueViewContent
impl Send for StateChangeValueViewContent
impl Sync for StateChangeValueViewContent
impl Unpin for StateChangeValueViewContent
impl UnwindSafe for StateChangeValueViewContent
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