pub enum RpcBlockRequest {
BlockId(BlockId),
Finality(Finality),
SyncCheckpoint(SyncCheckpoint),
}
Expand description
RpcBlockRequest
JSON schema
{
"title": "RpcBlockRequest",
"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 RpcBlockRequest
impl Clone for RpcBlockRequest
Source§fn clone(&self) -> RpcBlockRequest
fn clone(&self) -> RpcBlockRequest
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 RpcBlockRequest
impl Debug for RpcBlockRequest
Source§impl<'de> Deserialize<'de> for RpcBlockRequest
impl<'de> Deserialize<'de> for RpcBlockRequest
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<&RpcBlockRequest> for RpcBlockRequest
impl From<&RpcBlockRequest> for RpcBlockRequest
Source§fn from(value: &RpcBlockRequest) -> Self
fn from(value: &RpcBlockRequest) -> Self
Converts to this type from the input type.
Source§impl From<BlockId> for RpcBlockRequest
impl From<BlockId> for RpcBlockRequest
Source§impl From<Finality> for RpcBlockRequest
impl From<Finality> for RpcBlockRequest
Source§impl From<SyncCheckpoint> for RpcBlockRequest
impl From<SyncCheckpoint> for RpcBlockRequest
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 RpcBlockRequest
impl RefUnwindSafe for RpcBlockRequest
impl Send for RpcBlockRequest
impl Sync for RpcBlockRequest
impl Unpin for RpcBlockRequest
impl UnwindSafe for RpcBlockRequest
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