Struct disarray_ledger::blockchains::FlyClientProposal
source · pub struct FlyClientProposal {
pub chain_depth: usize,
pub header: BlockHeader,
}
Fields
chain_depth: usize
header: BlockHeader
Implementations
sourceimpl FlyClientProposal
impl FlyClientProposal
pub fn new(blockchain: &Blockchain) -> Self
Trait Implementations
sourceimpl Clone for FlyClientProposal
impl Clone for FlyClientProposal
sourcefn clone(&self) -> FlyClientProposal
fn clone(&self) -> FlyClientProposal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FlyClientProposal
impl Debug for FlyClientProposal
sourceimpl<'de> Deserialize<'de> for FlyClientProposal
impl<'de> Deserialize<'de> for FlyClientProposal
sourcefn 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
sourceimpl PartialEq<FlyClientProposal> for FlyClientProposal
impl PartialEq<FlyClientProposal> for FlyClientProposal
sourcefn eq(&self, other: &FlyClientProposal) -> bool
fn eq(&self, other: &FlyClientProposal) -> bool
sourceimpl Serialize for FlyClientProposal
impl Serialize for FlyClientProposal
impl Eq for FlyClientProposal
impl StructuralEq for FlyClientProposal
impl StructuralPartialEq for FlyClientProposal
Auto Trait Implementations
impl RefUnwindSafe for FlyClientProposal
impl Send for FlyClientProposal
impl Sync for FlyClientProposal
impl Unpin for FlyClientProposal
impl UnwindSafe for FlyClientProposal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.