pub struct Limitation {
pub max_message_length: usize,
pub max_subscriptions: usize,
pub max_filters: usize,
pub max_limit: u64,
pub max_subid_length: usize,
pub min_prefix: usize,
pub max_event_tags: usize,
pub max_event_time_older_than_now: u64,
pub max_event_time_newer_than_now: u64,
}
Fields§
§max_message_length: usize
this is the maximum number of bytes for incoming JSON. default 512K
max_subscriptions: usize
total number of subscriptions that may be active on a single websocket connection to this relay. default 20
max_filters: usize
maximum number of filter values in each subscription. default 10
max_limit: u64
the relay server will clamp each filter’s limit value to this number. This means the client won’t be able to get more than this number of events from a single subscription filter. default 300
max_subid_length: usize
maximum length of subscription id as a string. default 100
min_prefix: usize
for authors and ids filters which are to match against a hex prefix, you must provide at least this many hex digits in the prefix. default 10
in any event, this is the maximum number of elements in the tags list. default 5000
max_event_time_older_than_now: u64
Events older than this will be rejected. default 3 years, 0 ignore
max_event_time_newer_than_now: u64
Events newer than this will be rejected. default 15 minutes, 0 ignore
Trait Implementations§
Source§impl Clone for Limitation
impl Clone for Limitation
Source§fn clone(&self) -> Limitation
fn clone(&self) -> Limitation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Limitation
impl Debug for Limitation
Source§impl Default for Limitation
impl Default for Limitation
Source§impl<'de> Deserialize<'de> for Limitationwhere
Limitation: Default,
impl<'de> Deserialize<'de> for Limitationwhere
Limitation: Default,
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>,
Source§impl PartialEq for Limitation
impl PartialEq for Limitation
Source§impl Serialize for Limitation
impl Serialize for Limitation
impl Eq for Limitation
impl StructuralPartialEq for Limitation
Auto Trait Implementations§
impl Freeze for Limitation
impl RefUnwindSafe for Limitation
impl Send for Limitation
impl Sync for Limitation
impl Unpin for Limitation
impl UnwindSafe for Limitation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
key
and return true
if they are equal.