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: CryptoHashActionReceiptProcessingStarted
Fields
§
receipt_hash: CryptoHashActionReceiptGasReward
Fields
§
receipt_hash: CryptoHashReceiptProcessing
Fields
§
receipt_hash: CryptoHashPostponedReceipt
Fields
§
receipt_hash: CryptoHashUpdatedDelayedReceipts
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§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 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<StateChangeCauseView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateChangeCauseView, <__D as Deserializer<'de>>::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) -> StateChangeCauseView
fn from(value: &StateChangeCauseView) -> StateChangeCauseView
Converts to this type from the input type.
Source§impl Serialize for StateChangeCauseView
impl Serialize for StateChangeCauseView
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 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