pub struct PruneModes {
pub sender_recovery: Option<PruneMode>,
pub transaction_lookup: Option<PruneMode>,
pub receipts: Option<PruneMode>,
pub account_history: Option<PruneMode>,
pub storage_history: Option<PruneMode>,
pub receipts_log_filter: ReceiptsLogPruneConfig,
}
Expand description
Pruning configuration for every segment of the data that can be pruned.
Fields§
§sender_recovery: Option<PruneMode>
Sender Recovery pruning configuration.
transaction_lookup: Option<PruneMode>
Transaction Lookup pruning configuration.
receipts: Option<PruneMode>
Receipts pruning configuration. This setting overrides receipts_log_filter
and offers improved performance.
account_history: Option<PruneMode>
Account History pruning configuration.
storage_history: Option<PruneMode>
Storage History pruning configuration.
receipts_log_filter: ReceiptsLogPruneConfig
Receipts pruning configuration by retaining only those receipts that contain logs emitted
by the specified addresses, discarding others. This setting is overridden by receipts
.
The BlockNumber
represents the starting block from which point
onwards the receipts are preserved.
Implementations§
Source§impl PruneModes
impl PruneModes
Sourcepub fn has_receipts_pruning(&self) -> bool
pub fn has_receipts_pruning(&self) -> bool
Returns whether there is any kind of receipt pruning configuration.
Trait Implementations§
Source§impl Clone for PruneModes
impl Clone for PruneModes
Source§fn clone(&self) -> PruneModes
fn clone(&self) -> PruneModes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PruneModes
impl Debug for PruneModes
Source§impl Default for PruneModes
impl Default for PruneModes
Source§fn default() -> PruneModes
fn default() -> PruneModes
Source§impl<'de> Deserialize<'de> for PruneModeswhere
PruneModes: Default,
impl<'de> Deserialize<'de> for PruneModeswhere
PruneModes: Default,
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>,
Source§impl PartialEq for PruneModes
impl PartialEq for PruneModes
Source§impl Serialize for PruneModes
impl Serialize for PruneModes
impl Eq for PruneModes
impl StructuralPartialEq for PruneModes
Auto Trait Implementations§
impl Freeze for PruneModes
impl RefUnwindSafe for PruneModes
impl Send for PruneModes
impl Sync for PruneModes
impl Unpin for PruneModes
impl UnwindSafe for PruneModes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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> 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>
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>
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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes