Struct nostr_database::memory::MemoryDatabaseOptions
source · pub struct MemoryDatabaseOptions {
pub events: bool,
pub max_events: Option<usize>,
}Expand description
Database options
Fields§
§events: boolStore events (?)
max_events: Option<usize>Max events and IDs to store in memory
None means no limits.
Implementations§
Trait Implementations§
source§impl Clone for MemoryDatabaseOptions
impl Clone for MemoryDatabaseOptions
source§fn clone(&self) -> MemoryDatabaseOptions
fn clone(&self) -> MemoryDatabaseOptions
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 MemoryDatabaseOptions
impl Debug for MemoryDatabaseOptions
source§impl Default for MemoryDatabaseOptions
impl Default for MemoryDatabaseOptions
source§impl Hash for MemoryDatabaseOptions
impl Hash for MemoryDatabaseOptions
source§impl Ord for MemoryDatabaseOptions
impl Ord for MemoryDatabaseOptions
source§fn cmp(&self, other: &MemoryDatabaseOptions) -> Ordering
fn cmp(&self, other: &MemoryDatabaseOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemoryDatabaseOptions
impl PartialEq for MemoryDatabaseOptions
source§fn eq(&self, other: &MemoryDatabaseOptions) -> bool
fn eq(&self, other: &MemoryDatabaseOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for MemoryDatabaseOptions
impl PartialOrd for MemoryDatabaseOptions
source§fn partial_cmp(&self, other: &MemoryDatabaseOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &MemoryDatabaseOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for MemoryDatabaseOptions
impl Eq for MemoryDatabaseOptions
impl StructuralPartialEq for MemoryDatabaseOptions
Auto Trait Implementations§
impl Freeze for MemoryDatabaseOptions
impl RefUnwindSafe for MemoryDatabaseOptions
impl Send for MemoryDatabaseOptions
impl Sync for MemoryDatabaseOptions
impl Unpin for MemoryDatabaseOptions
impl UnwindSafe for MemoryDatabaseOptions
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.