[][src]Struct exonum::blockchain::config::GenesisConfigBuilder

pub struct GenesisConfigBuilder { /* fields omitted */ }

Creates GenesisConfig from components.

Methods

impl GenesisConfigBuilder[src]

pub fn with_consensus_config(consensus_config: ConsensusConfig) -> Self[src]

Creates a new builder instance based on the ConsensusConfig.

pub fn with_artifact(self, artifact: impl Into<ArtifactId>) -> Self[src]

Adds an artifact with no deploy argument. Does nothing in case artifact with given id is already added.

pub fn with_parametric_artifact(
    self,
    artifact: impl Into<ArtifactId>,
    payload: impl BinaryValue
) -> Self
[src]

Adds an artifact with corresponding deploy argument. Does nothing in case artifact with given id is already added.

pub fn with_instance(self, instance_params: InstanceInitParams) -> Self[src]

Adds service instance initialization parameters.

pub fn build(self) -> GenesisConfig[src]

Produces GenesisConfig from collected components.

Trait Implementations

impl Debug for GenesisConfigBuilder[src]

impl Default for GenesisConfigBuilder[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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,