pub enum StateChangeCauseView {
NotWritableToDisk,
InitialState,
TransactionProcessing {
tx_hash: CryptoHash,
},
ActionReceiptProcessingStarted {
receipt_hash: CryptoHash,
},
ActionReceiptGasReward {
receipt_hash: CryptoHash,
},
ReceiptProcessing {
receipt_hash: CryptoHash,
},
PostponedReceipt {
receipt_hash: CryptoHash,
},
UpdatedDelayedReceipts,
ValidatorAccountsUpdate,
Migration,
BandwidthSchedulerStateUpdate,
}
Expand description
See crate::types::StateChangeCause for details.
JSON schema
{
"description": "See crate::types::StateChangeCause for details.",
"oneOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"not_writable_to_disk"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"initial_state"
]
}
}
},
{
"type": "object",
"required": [
"tx_hash",
"type"
],
"properties": {
"tx_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"transaction_processing"
]
}
}
},
{
"type": "object",
"required": [
"receipt_hash",
"type"
],
"properties": {
"receipt_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"action_receipt_processing_started"
]
}
}
},
{
"type": "object",
"required": [
"receipt_hash",
"type"
],
"properties": {
"receipt_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"action_receipt_gas_reward"
]
}
}
},
{
"type": "object",
"required": [
"receipt_hash",
"type"
],
"properties": {
"receipt_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"receipt_processing"
]
}
}
},
{
"type": "object",
"required": [
"receipt_hash",
"type"
],
"properties": {
"receipt_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"postponed_receipt"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"updated_delayed_receipts"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"validator_accounts_update"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"migration"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"bandwidth_scheduler_state_update"
]
}
}
}
]
}
Variants§
NotWritableToDisk
InitialState
TransactionProcessing
Fields
§
tx_hash: CryptoHash
ActionReceiptProcessingStarted
Fields
§
receipt_hash: CryptoHash
ActionReceiptGasReward
Fields
§
receipt_hash: CryptoHash
ReceiptProcessing
Fields
§
receipt_hash: CryptoHash
PostponedReceipt
Fields
§
receipt_hash: CryptoHash
UpdatedDelayedReceipts
ValidatorAccountsUpdate
Migration
BandwidthSchedulerStateUpdate
Trait Implementations§
Source§impl Clone for StateChangeCauseView
impl Clone for StateChangeCauseView
Source§fn clone(&self) -> StateChangeCauseView
fn clone(&self) -> StateChangeCauseView
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 StateChangeCauseView
impl Debug for StateChangeCauseView
Source§impl<'de> Deserialize<'de> for StateChangeCauseView
impl<'de> Deserialize<'de> for StateChangeCauseView
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<&StateChangeCauseView> for StateChangeCauseView
impl From<&StateChangeCauseView> for StateChangeCauseView
Source§fn from(value: &StateChangeCauseView) -> Self
fn from(value: &StateChangeCauseView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StateChangeCauseView
impl RefUnwindSafe for StateChangeCauseView
impl Send for StateChangeCauseView
impl Sync for StateChangeCauseView
impl Unpin for StateChangeCauseView
impl UnwindSafe for StateChangeCauseView
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