Struct dubp_block::DubpBlockV10Content[][src]

pub struct DubpBlockV10Content {
    pub version: usize,
    pub number: BlockNumber,
    pub pow_min: usize,
    pub time: u64,
    pub median_time: u64,
    pub members_count: usize,
    pub monetary_mass: u64,
    pub unit_base: usize,
    pub issuers_count: usize,
    pub issuers_frame: usize,
    pub issuers_frame_var: isize,
    pub currency: CurrencyName,
    pub issuer: PublicKey,
    pub parameters: Option<BlockV10Parameters>,
    pub previous_hash: Hash,
    pub previous_issuer: PublicKey,
    pub dividend: Option<usize>,
    pub identities: Vec<IdentityDocumentV10>,
    pub joiners: Vec<MembershipDocumentV10>,
    pub actives: Vec<MembershipDocumentV10>,
    pub leavers: Vec<MembershipDocumentV10>,
    pub revoked: Vec<TextDocumentFormat<RevocationDocumentV10>>,
    pub excluded: Vec<PublicKey>,
    pub certifications: Vec<TextDocumentFormat<CertificationDocumentV10>>,
    pub transactions: Vec<TransactionDocumentV10>,
}

Fields

version: usize

Version

number: BlockNumber

number

pow_min: usize

Minimal proof of work difficulty

time: u64

Local time of the block issuer

median_time: u64

Average time

members_count: usize

Members count

monetary_mass: u64

Monetary mass

unit_base: usize

Unit base (power of ten)

issuers_count: usize

Number of compute members in the current frame

issuers_frame: usize

Current frame size (in blocks)

issuers_frame_var: isize

Current frame variation buffer

currency: CurrencyName

Currency.

issuer: PublicKey

Block issuer

parameters: Option<BlockV10Parameters>

Currency parameters (only in genesis block)

previous_hash: Hash

Hash of the previous block

previous_issuer: PublicKey

Issuer of the previous block

dividend: Option<usize>

Amount of new dividend created at this block, None if no dividend is created at this block

identities: Vec<IdentityDocumentV10>

Identities

joiners: Vec<MembershipDocumentV10>

joiners

actives: Vec<MembershipDocumentV10>

Actives (=renewals)

leavers: Vec<MembershipDocumentV10>

Leavers

revoked: Vec<TextDocumentFormat<RevocationDocumentV10>>

Revokeds

excluded: Vec<PublicKey>

Excludeds

certifications: Vec<TextDocumentFormat<CertificationDocumentV10>>

Certifications

transactions: Vec<TransactionDocumentV10>

Transactions

Trait Implementations

impl Clone for DubpBlockV10Content[src]

impl Debug for DubpBlockV10Content[src]

impl Default for DubpBlockV10Content[src]

impl<'de> Deserialize<'de> for DubpBlockV10Content[src]

impl PartialEq<DubpBlockV10Content> for DubpBlockV10Content[src]

impl Serialize for DubpBlockV10Content[src]

impl StructuralPartialEq for DubpBlockV10Content[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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 = Infallible

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.