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§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 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<RpcBlockRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcBlockRequest, <__D as Deserializer<'de>>::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) -> RpcBlockRequest
fn from(value: &RpcBlockRequest) -> RpcBlockRequest
Converts to this type from the input type.
Source§impl From<BlockId> for RpcBlockRequest
impl From<BlockId> for RpcBlockRequest
Source§fn from(value: BlockId) -> RpcBlockRequest
fn from(value: BlockId) -> RpcBlockRequest
Converts to this type from the input type.
Source§impl From<Finality> for RpcBlockRequest
impl From<Finality> for RpcBlockRequest
Source§fn from(value: Finality) -> RpcBlockRequest
fn from(value: Finality) -> RpcBlockRequest
Converts to this type from the input type.
Source§impl From<SyncCheckpoint> for RpcBlockRequest
impl From<SyncCheckpoint> for RpcBlockRequest
Source§fn from(value: SyncCheckpoint) -> RpcBlockRequest
fn from(value: SyncCheckpoint) -> RpcBlockRequest
Converts to this type from the input type.
Source§impl Serialize for RpcBlockRequest
impl Serialize for RpcBlockRequest
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 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