pub struct UtxoCommitmentsConfig {
pub sync_mode: SyncMode,
pub verification_level: VerificationLevel,
pub consensus: ConsensusConfigSerializable,
pub spam_filter: SpamFilterConfigSerializable,
pub storage: StorageConfig,
}Expand description
Complete configuration for UTXO commitments module
Fields§
§sync_mode: SyncModeSync mode
verification_level: VerificationLevelVerification level
consensus: ConsensusConfigSerializablePeer consensus configuration
spam_filter: SpamFilterConfigSerializableSpam filter configuration
storage: StorageConfigStorage preferences
Implementations§
Source§impl UtxoCommitmentsConfig
impl UtxoCommitmentsConfig
Sourcepub fn from_json_file(path: &Path) -> Result<Self, String>
pub fn from_json_file(path: &Path) -> Result<Self, String>
Load configuration from JSON file
Sourcepub fn create_default_config_file(path: &Path) -> Result<(), String>
pub fn create_default_config_file(path: &Path) -> Result<(), String>
Create default configuration file template
Sourcepub fn to_consensus_config(&self) -> ConsensusConfig
pub fn to_consensus_config(&self) -> ConsensusConfig
Convert to ConsensusConfig
Sourcepub fn to_spam_filter_config(&self) -> SpamFilterConfig
pub fn to_spam_filter_config(&self) -> SpamFilterConfig
Convert to SpamFilterConfig
Trait Implementations§
Source§impl Clone for UtxoCommitmentsConfig
impl Clone for UtxoCommitmentsConfig
Source§fn clone(&self) -> UtxoCommitmentsConfig
fn clone(&self) -> UtxoCommitmentsConfig
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 UtxoCommitmentsConfig
impl Debug for UtxoCommitmentsConfig
Source§impl Default for UtxoCommitmentsConfig
Serializable version of SpamFilterConfig
impl Default for UtxoCommitmentsConfig
Serializable version of SpamFilterConfig
Source§impl<'de> Deserialize<'de> for UtxoCommitmentsConfig
impl<'de> Deserialize<'de> for UtxoCommitmentsConfig
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 PartialEq for UtxoCommitmentsConfig
impl PartialEq for UtxoCommitmentsConfig
Source§fn eq(&self, other: &UtxoCommitmentsConfig) -> bool
fn eq(&self, other: &UtxoCommitmentsConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UtxoCommitmentsConfig
impl Serialize for UtxoCommitmentsConfig
impl StructuralPartialEq for UtxoCommitmentsConfig
Auto Trait Implementations§
impl Freeze for UtxoCommitmentsConfig
impl RefUnwindSafe for UtxoCommitmentsConfig
impl Send for UtxoCommitmentsConfig
impl Sync for UtxoCommitmentsConfig
impl Unpin for UtxoCommitmentsConfig
impl UnsafeUnpin for UtxoCommitmentsConfig
impl UnwindSafe for UtxoCommitmentsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more