[−][src]Struct exonum::blockchain::config::GenesisConfigBuilder
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]
self,
artifact: impl Into<ArtifactId>,
payload: impl BinaryValue
) -> Self
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]
fn default() -> GenesisConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenesisConfigBuilder
impl Send for GenesisConfigBuilder
impl Sync for GenesisConfigBuilder
impl Unpin for GenesisConfigBuilder
impl UnwindSafe for GenesisConfigBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,