Struct sc_state_db::Constraints
source · pub struct Constraints {
pub max_blocks: Option<u32>,
}
Expand description
Pruning constraints. If none are specified pruning is
Fields§
§max_blocks: Option<u32>
Maximum blocks. Defaults to 0 when unspecified, effectively keeping only non-canonical states.
Trait Implementations§
source§impl Clone for Constraints
impl Clone for Constraints
source§fn clone(&self) -> Constraints
fn clone(&self) -> Constraints
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 Constraints
impl Debug for Constraints
source§impl Default for Constraints
impl Default for Constraints
source§impl PartialEq<Constraints> for Constraints
impl PartialEq<Constraints> for Constraints
source§fn eq(&self, other: &Constraints) -> bool
fn eq(&self, other: &Constraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.