pub struct LedgerConfig {
pub network: NetworkType,
pub consensus_rpc: String,
pub bootstrap_peers: Vec<String>,
pub block_time_ms: u64,
pub quantum_safe: bool,
pub security_level: u8,
}Expand description
Ledger configuration
Fields§
§network: NetworkTypeNetwork type
consensus_rpc: StringLux consensus RPC endpoint
bootstrap_peers: Vec<String>P2P bootstrap peers
block_time_ms: u64Block time in milliseconds
quantum_safe: boolEnable quantum-safe mode
security_level: u8Security level (NIST 2, 3, or 5)
Implementations§
Source§impl LedgerConfig
impl LedgerConfig
Trait Implementations§
Source§impl Clone for LedgerConfig
impl Clone for LedgerConfig
Source§fn clone(&self) -> LedgerConfig
fn clone(&self) -> LedgerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LedgerConfig
impl Debug for LedgerConfig
Source§impl<'de> Deserialize<'de> for LedgerConfig
impl<'de> Deserialize<'de> for LedgerConfig
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
Auto Trait Implementations§
impl Freeze for LedgerConfig
impl RefUnwindSafe for LedgerConfig
impl Send for LedgerConfig
impl Sync for LedgerConfig
impl Unpin for LedgerConfig
impl UnsafeUnpin for LedgerConfig
impl UnwindSafe for LedgerConfig
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