pub struct ContextPruneCommand {
pub min_relevance: Option<f32>,
pub max_age_secs: Option<u64>,
}Expand description
CTX PRUNE command criteria
Fields§
§min_relevance: Option<f32>Remove blocks below this relevance threshold
max_age_secs: Option<u64>Remove blocks not accessed in this many seconds
Trait Implementations§
Source§impl Clone for ContextPruneCommand
impl Clone for ContextPruneCommand
Source§fn clone(&self) -> ContextPruneCommand
fn clone(&self) -> ContextPruneCommand
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 ContextPruneCommand
impl Debug for ContextPruneCommand
Source§impl<'de> Deserialize<'de> for ContextPruneCommand
impl<'de> Deserialize<'de> for ContextPruneCommand
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 ContextPruneCommand
impl PartialEq for ContextPruneCommand
Source§impl Serialize for ContextPruneCommand
impl Serialize for ContextPruneCommand
impl StructuralPartialEq for ContextPruneCommand
Auto Trait Implementations§
impl Freeze for ContextPruneCommand
impl RefUnwindSafe for ContextPruneCommand
impl Send for ContextPruneCommand
impl Sync for ContextPruneCommand
impl Unpin for ContextPruneCommand
impl UnwindSafe for ContextPruneCommand
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