pub struct NodeConfigBuilder {
pub storage: Option<PathBuf>,
pub log: Option<Log>,
pub rest: Rest,
pub jrpc: JRpc,
pub p2p: P2p,
pub mempool: Option<Mempool>,
}
Fields§
§storage: Option<PathBuf>
§log: Option<Log>
§rest: Rest
§jrpc: JRpc
§p2p: P2p
§mempool: Option<Mempool>
Implementations§
source§impl NodeConfigBuilder
impl NodeConfigBuilder
pub fn with_log_level(self, level: impl Into<String>) -> Self
source§impl NodeConfigBuilder
impl NodeConfigBuilder
pub fn with_policy(self, policy: Policy) -> Self
pub fn with_log(self, log: Log) -> Self
pub fn without_log(self) -> Self
pub fn with_trusted_peers(self, trusted_peers: Vec<TrustedPeer>) -> Self
pub fn with_public_address(self, public_address: String) -> Self
pub fn with_listen_address(self, listen_address: String) -> Self
pub fn with_rest_tls_config(self, tls: Tls) -> Self
pub fn with_rest_cors_config(self, cors: Cors) -> Self
pub fn with_mempool(self, mempool: Mempool) -> Self
pub fn with_storage(self, path: PathBuf) -> Self
pub fn build(self) -> NodeConfig
Trait Implementations§
source§impl Clone for NodeConfigBuilder
impl Clone for NodeConfigBuilder
source§fn clone(&self) -> NodeConfigBuilder
fn clone(&self) -> NodeConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeConfigBuilder
impl Debug for NodeConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for NodeConfigBuilder
impl Send for NodeConfigBuilder
impl Sync for NodeConfigBuilder
impl Unpin for NodeConfigBuilder
impl UnwindSafe for NodeConfigBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request