pub struct BlockResponse {
pub id: BlockId,
pub block: Block,
}
Fields§
§id: BlockId
§block: Block
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 From<BlockResponse> for GetLatestBlockResponse
impl From<BlockResponse> for GetLatestBlockResponse
Source§fn from(res: BlockResponse) -> Self
fn from(res: BlockResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockResponse
impl PartialEq for BlockResponse
Source§impl Serialize for BlockResponse
impl Serialize for BlockResponse
Source§impl TryFrom<GetLatestBlockResponse> for BlockResponse
impl TryFrom<GetLatestBlockResponse> for BlockResponse
Source§type Error = TendermintError
type Error = TendermintError
The type returned in the event of a conversion error.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request