pub struct Config {
pub ipfs: Ipfs,
pub state_store: StateStore,
pub http_api: HttpApi,
pub network: Network,
pub anchor: Anchor,
pub indexing: Indexing,
pub did_resolvers: DidResolvers,
pub node: Node,
pub logger: Logger,
pub metrics: Metrics,
}Fields§
§ipfs: Ipfs§state_store: StateStore§http_api: HttpApi§network: Network§anchor: Anchor§indexing: Indexing§did_resolvers: DidResolvers§node: Node§logger: Logger§metrics: MetricsImplementations§
Source§impl Config
impl Config
pub fn new( id: &NetworkIdentifier, name: &str, cas_auth: Option<CasAuth>, ) -> Self
pub fn initialize( &mut self, id: &NetworkIdentifier, name: &str, cas_auth: Option<CasAuth>, ) -> &mut Self
Source§impl Config
impl Config
pub fn eth_resolver_options(&self) -> Option<String>
pub fn allows_sqlite(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<DaemonConfig> for Config
impl Into<DaemonConfig> for Config
Source§fn into(self) -> DaemonConfig
fn into(self) -> DaemonConfig
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more