pub struct Features {
pub persistent: bool,
pub event_expiration: bool,
pub full_text_search: bool,
pub request_to_vanish: bool,
}Expand description
Backend features
Fields§
§persistent: boolWhether the database supports persistent storage.
event_expiration: boolWhether the database supports event expiration (NIP-40)
When supported, the database will automatically exclude expired events from query results and/or delete them.
full_text_search: boolWhether the database supports full-text search (NIP-50)
request_to_vanish: boolWhether the database supports the request to vanish (NIP-62)
Trait Implementations§
impl Copy for Features
impl Eq for Features
Source§impl Ord for Features
impl Ord for Features
1.21.0 (const: unstable) · 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 PartialOrd for Features
impl PartialOrd for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnsafeUnpin for Features
impl UnwindSafe for Features
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