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