[][src]Struct types::beacon_block_body::BeaconBlockBody

pub struct BeaconBlockBody<T: EthSpec> {
    pub randao_reveal: Signature,
    pub eth1_data: Eth1Data,
    pub graffiti: [u8; 32],
    pub proposer_slashings: VariableList<ProposerSlashing, T::MaxProposerSlashings>,
    pub attester_slashings: VariableList<AttesterSlashing<T>, T::MaxAttesterSlashings>,
    pub attestations: VariableList<Attestation<T>, T::MaxAttestations>,
    pub deposits: VariableList<Deposit, T::MaxDeposits>,
    pub voluntary_exits: VariableList<VoluntaryExit, T::MaxVoluntaryExits>,
    pub transfers: VariableList<Transfer, T::MaxTransfers>,
}

The body of a BeaconChain block, containing operations.

Spec v0.8.0

Fields

randao_reveal: Signatureeth1_data: Eth1Datagraffiti: [u8; 32]proposer_slashings: VariableList<ProposerSlashing, T::MaxProposerSlashings>attester_slashings: VariableList<AttesterSlashing<T>, T::MaxAttesterSlashings>attestations: VariableList<Attestation<T>, T::MaxAttestations>deposits: VariableList<Deposit, T::MaxDeposits>voluntary_exits: VariableList<VoluntaryExit, T::MaxVoluntaryExits>transfers: VariableList<Transfer, T::MaxTransfers>

Trait Implementations

impl<T: EthSpec> TestRandom for BeaconBlockBody<T>[src]

impl<T: Clone + EthSpec> Clone for BeaconBlockBody<T> where
    T::MaxProposerSlashings: Clone,
    T::MaxAttesterSlashings: Clone,
    T::MaxAttestations: Clone,
    T::MaxDeposits: Clone,
    T::MaxVoluntaryExits: Clone,
    T::MaxTransfers: Clone
[src]

impl<T: PartialEq + EthSpec> PartialEq<BeaconBlockBody<T>> for BeaconBlockBody<T> where
    T::MaxProposerSlashings: PartialEq,
    T::MaxAttesterSlashings: PartialEq,
    T::MaxAttestations: PartialEq,
    T::MaxDeposits: PartialEq,
    T::MaxVoluntaryExits: PartialEq,
    T::MaxTransfers: PartialEq
[src]

impl<T: Debug + EthSpec> Debug for BeaconBlockBody<T> where
    T::MaxProposerSlashings: Debug,
    T::MaxAttesterSlashings: Debug,
    T::MaxAttestations: Debug,
    T::MaxDeposits: Debug,
    T::MaxVoluntaryExits: Debug,
    T::MaxTransfers: Debug
[src]

impl<T: EthSpec> TreeHash for BeaconBlockBody<T>[src]

impl<T: EthSpec> Serialize for BeaconBlockBody<T> where
    T: EthSpec
[src]

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

impl<T: EthSpec> Decode for BeaconBlockBody<T>[src]

impl<T: EthSpec> Encode for BeaconBlockBody<T>[src]

Auto Trait Implementations

impl<T> Send for BeaconBlockBody<T> where
    <T as EthSpec>::MaxAttestations: Send,
    <T as EthSpec>::MaxAttesterSlashings: Send,
    <T as EthSpec>::MaxDeposits: Send,
    <T as EthSpec>::MaxProposerSlashings: Send,
    <T as EthSpec>::MaxTransfers: Send,
    <T as EthSpec>::MaxValidatorsPerCommittee: Send,
    <T as EthSpec>::MaxVoluntaryExits: Send

impl<T> Unpin for BeaconBlockBody<T> where
    <T as EthSpec>::MaxAttestations: Unpin,
    <T as EthSpec>::MaxAttesterSlashings: Unpin,
    <T as EthSpec>::MaxDeposits: Unpin,
    <T as EthSpec>::MaxProposerSlashings: Unpin,
    <T as EthSpec>::MaxTransfers: Unpin,
    <T as EthSpec>::MaxValidatorsPerCommittee: Unpin,
    <T as EthSpec>::MaxVoluntaryExits: Unpin

impl<T> Sync for BeaconBlockBody<T> where
    <T as EthSpec>::MaxAttestations: Sync,
    <T as EthSpec>::MaxAttesterSlashings: Sync,
    <T as EthSpec>::MaxDeposits: Sync,
    <T as EthSpec>::MaxProposerSlashings: Sync,
    <T as EthSpec>::MaxTransfers: Sync,
    <T as EthSpec>::MaxValidatorsPerCommittee: Sync,
    <T as EthSpec>::MaxVoluntaryExits: Sync

impl<T> UnwindSafe for BeaconBlockBody<T> where
    <T as EthSpec>::MaxAttestations: UnwindSafe,
    <T as EthSpec>::MaxAttesterSlashings: UnwindSafe,
    <T as EthSpec>::MaxDeposits: UnwindSafe,
    <T as EthSpec>::MaxProposerSlashings: UnwindSafe,
    <T as EthSpec>::MaxTransfers: UnwindSafe,
    <T as EthSpec>::MaxValidatorsPerCommittee: UnwindSafe,
    <T as EthSpec>::MaxVoluntaryExits: UnwindSafe

impl<T> RefUnwindSafe for BeaconBlockBody<T> where
    <T as EthSpec>::MaxAttestations: RefUnwindSafe,
    <T as EthSpec>::MaxAttesterSlashings: RefUnwindSafe,
    <T as EthSpec>::MaxDeposits: RefUnwindSafe,
    <T as EthSpec>::MaxProposerSlashings: RefUnwindSafe,
    <T as EthSpec>::MaxTransfers: RefUnwindSafe,
    <T as EthSpec>::MaxValidatorsPerCommittee: RefUnwindSafe,
    <T as EthSpec>::MaxVoluntaryExits: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized