pub struct PruningOptions {
pub keep_recent: u32,
pub interval: u32,
pub strategy: PruningStrategy,
}Fields§
§keep_recent: u32keep_recent defines how many recent heights to keep on disk.
interval: u32interval defines the frequency of removing the pruned heights from the disk.
strategy: PruningStrategystrategy defines the currently used kind of PruningStrategy.
Implementations§
Source§impl PruningOptions
impl PruningOptions
pub fn validate(&self) -> Result<(), ScraperError>
pub fn nothing() -> Self
pub fn strategy_interval(&self) -> u32
pub fn strategy_keep_recent(&self) -> u32
Trait Implementations§
Source§impl Clone for PruningOptions
impl Clone for PruningOptions
Source§fn clone(&self) -> PruningOptions
fn clone(&self) -> PruningOptions
Returns a duplicate 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 PruningOptions
impl Debug for PruningOptions
Source§impl Default for PruningOptions
impl Default for PruningOptions
Source§impl<'de> Deserialize<'de> for PruningOptions
impl<'de> Deserialize<'de> for PruningOptions
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 Serialize for PruningOptions
impl Serialize for PruningOptions
impl Copy for PruningOptions
Auto Trait Implementations§
impl Freeze for PruningOptions
impl RefUnwindSafe for PruningOptions
impl Send for PruningOptions
impl Sync for PruningOptions
impl Unpin for PruningOptions
impl UnwindSafe for PruningOptions
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> 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