Struct tdn::prelude::Config[][src]

pub struct Config {
Show 13 fields pub db_path: Option<PathBuf>, pub secret: [u8; 32], pub group_ids: Vec<GroupId>, pub permission: bool, pub only_stable_data: bool, pub p2p_peer: Peer, pub p2p_allowlist: Vec<Peer>, pub p2p_blocklist: Vec<IpAddr>, pub p2p_allow_peer_list: Vec<PeerId>, pub p2p_block_peer_list: Vec<PeerId>, pub rpc_addr: SocketAddr, pub rpc_ws: Option<SocketAddr>, pub rpc_index: Option<PathBuf>,
}
Expand description

load config from config file.

Fields

db_path: Option<PathBuf>secret: [u8; 32]group_ids: Vec<GroupId>permission: boolonly_stable_data: boolp2p_peer: Peerp2p_allowlist: Vec<Peer>p2p_blocklist: Vec<IpAddr>p2p_allow_peer_list: Vec<PeerId>p2p_block_peer_list: Vec<PeerId>rpc_addr: SocketAddrrpc_ws: Option<SocketAddr>rpc_index: Option<PathBuf>

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more