fedimint_core::config

Trait ModuleInitParams

source
pub trait ModuleInitParams: Serialize + DeserializeOwned {
    type Local: DeserializeOwned + Serialize;
    type Consensus: DeserializeOwned + Serialize;

    // Required methods
    fn from_parts(local: Self::Local, consensus: Self::Consensus) -> Self;
    fn to_parts(self) -> (Self::Local, Self::Consensus);
}

Required Associated Types§

source

type Local: DeserializeOwned + Serialize

Locally configurable parameters for config generation

source

type Consensus: DeserializeOwned + Serialize

Consensus parameters for config generation

Required Methods§

source

fn from_parts(local: Self::Local, consensus: Self::Consensus) -> Self

Assemble from the distinct parts

source

fn to_parts(self) -> (Self::Local, Self::Consensus)

Split the config into its distinct parts

Object Safety§

This trait is not object safe.

Implementors§