pub enum BlockResponse {
Json(BlockDto),
Raw(Vec<u8>),
}
Expand description
Response of GET /api/core/v2/blocks/{block_id}. Returns a specific block.
Variants§
Trait Implementations§
Source§impl Clone for BlockResponse
impl Clone for BlockResponse
Source§fn clone(&self) -> BlockResponse
fn clone(&self) -> BlockResponse
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 BlockResponse
impl Debug for BlockResponse
Source§impl<'de> Deserialize<'de> for BlockResponse
impl<'de> Deserialize<'de> for BlockResponse
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 IntoResponse for BlockResponse
impl IntoResponse for BlockResponse
Source§fn into_response(self) -> Response<BoxBody>
fn into_response(self) -> Response<BoxBody>
Create a response.
Source§impl PartialEq for BlockResponse
impl PartialEq for BlockResponse
Source§impl Serialize for BlockResponse
impl Serialize for BlockResponse
impl Eq for BlockResponse
impl StructuralPartialEq for BlockResponse
Auto Trait Implementations§
impl Freeze for BlockResponse
impl RefUnwindSafe for BlockResponse
impl Send for BlockResponse
impl Sync for BlockResponse
impl Unpin for BlockResponse
impl UnwindSafe for BlockResponse
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