[][src]Struct godcoin::blockchain::block::BlockV0

pub struct BlockV0 {
    pub header: BlockHeaderV0,
    pub signer: Option<SigPair>,
    pub transactions: Vec<TxVariant>,
}

Fields

header: BlockHeaderV0signer: Option<SigPair>transactions: Vec<TxVariant>

Methods

impl BlockV0[src]

pub fn new_child(&self, txs: Vec<TxVariant>) -> Block[src]

pub fn calc_header_hash(&self) -> Digest[src]

Trait Implementations

impl Clone for BlockV0[src]

impl PartialEq<BlockV0> for BlockV0[src]

impl Deref for BlockV0[src]

type Target = BlockHeaderV0

The resulting type after dereferencing.

impl Debug for BlockV0[src]

impl StructuralPartialEq for BlockV0[src]

Auto Trait Implementations

impl Send for BlockV0

impl Sync for BlockV0

impl Unpin for BlockV0

impl UnwindSafe for BlockV0

impl RefUnwindSafe for BlockV0

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]