pub enum BlockHeaderResponse {
Ok(Option<CandidConsensusBlockHeader>),
Forward(CanisterId),
}
Variants§
Ok(Option<CandidConsensusBlockHeader>)
Forward(CanisterId)
Trait Implementations§
source§impl CandidType for BlockHeaderResponse
impl CandidType for BlockHeaderResponse
source§impl Clone for BlockHeaderResponse
impl Clone for BlockHeaderResponse
source§fn clone(&self) -> BlockHeaderResponse
fn clone(&self) -> BlockHeaderResponse
Returns a copy 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 BlockHeaderResponse
impl Debug for BlockHeaderResponse
source§impl<'de> Deserialize<'de> for BlockHeaderResponse
impl<'de> Deserialize<'de> for BlockHeaderResponse
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 PartialEq for BlockHeaderResponse
impl PartialEq for BlockHeaderResponse
source§fn eq(&self, other: &BlockHeaderResponse) -> bool
fn eq(&self, other: &BlockHeaderResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockHeaderResponse
impl StructuralPartialEq for BlockHeaderResponse
Auto Trait Implementations§
impl Freeze for BlockHeaderResponse
impl RefUnwindSafe for BlockHeaderResponse
impl Send for BlockHeaderResponse
impl Sync for BlockHeaderResponse
impl Unpin for BlockHeaderResponse
impl UnwindSafe for BlockHeaderResponse
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