pub enum RpcStateChangesInBlockRequest {
BlockId(BlockId),
Finality(Finality),
SyncCheckpoint(SyncCheckpoint),
}
Expand description
RpcStateChangesInBlockRequest
JSON schema
{
"title": "RpcStateChangesInBlockRequest",
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for RpcStateChangesInBlockRequest
impl Clone for RpcStateChangesInBlockRequest
Source§fn clone(&self) -> RpcStateChangesInBlockRequest
fn clone(&self) -> RpcStateChangesInBlockRequest
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 RpcStateChangesInBlockRequest
impl<'de> Deserialize<'de> for RpcStateChangesInBlockRequest
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<&RpcStateChangesInBlockRequest> for RpcStateChangesInBlockRequest
impl From<&RpcStateChangesInBlockRequest> for RpcStateChangesInBlockRequest
Source§fn from(value: &RpcStateChangesInBlockRequest) -> Self
fn from(value: &RpcStateChangesInBlockRequest) -> Self
Converts to this type from the input type.
Source§impl From<BlockId> for RpcStateChangesInBlockRequest
impl From<BlockId> for RpcStateChangesInBlockRequest
Source§impl From<Finality> for RpcStateChangesInBlockRequest
impl From<Finality> for RpcStateChangesInBlockRequest
Source§impl From<SyncCheckpoint> for RpcStateChangesInBlockRequest
impl From<SyncCheckpoint> for RpcStateChangesInBlockRequest
Source§fn from(value: SyncCheckpoint) -> Self
fn from(value: SyncCheckpoint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcStateChangesInBlockRequest
impl RefUnwindSafe for RpcStateChangesInBlockRequest
impl Send for RpcStateChangesInBlockRequest
impl Sync for RpcStateChangesInBlockRequest
impl Unpin for RpcStateChangesInBlockRequest
impl UnwindSafe for RpcStateChangesInBlockRequest
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