pub struct ErrorExtras {Show 13 fields
pub field: Option<String>,
pub limit: Option<u64>,
pub supported: Option<VersionRange>,
pub feature: Option<String>,
pub missing: Option<u64>,
pub reason: Option<Reason>,
pub until: Option<u64>,
pub retry_after_ms: Option<u64>,
pub scope: Option<RateScope>,
pub category: Option<RateCategory>,
pub stream: Option<Stream>,
pub channel_id: Option<ChannelId>,
pub object: Option<String>,
}Expand description
The extra fields of §11. Each applies to the codes named on it.
Fields§
§field: Option<String>BAD_REQUEST: the offending field, when known ("body.content", "request_id").
limit: Option<u64>PAYLOAD_TOO_LARGE: the limit exceeded.
supported: Option<VersionRange>UNSUPPORTED_VERSION: the host’s range.
feature: Option<String>UNSUPPORTED_FEATURE: the feature.
missing: Option<u64>FORBIDDEN: the missing permission bits, as a JSON decimal string.
reason: Option<Reason>FORBIDDEN (hierarchy, probation, lockdown) or CONFLICT reason.
until: Option<u64>SUSPENDED / TIMED_OUT: end of the restriction, ms since the Unix epoch.
retry_after_ms: Option<u64>SLOWMODE_ACTIVE, RATE_LIMITED, BUSY: milliseconds to wait.
scope: Option<RateScope>RATE_LIMITED: the scope whose limit was hit.
category: Option<RateCategory>RATE_LIMITED: the category, when one applies.
stream: Option<Stream>RESYNC_REQUIRED: the stream to resynchronise.
channel_id: Option<ChannelId>RESYNC_REQUIRED: the channel, for a channel stream.
object: Option<String>INVALID_SIGNATURE: which signed object failed ("descriptor", "delegation", …).
Trait Implementations§
Source§impl Clone for ErrorExtras
impl Clone for ErrorExtras
Source§fn clone(&self) -> ErrorExtras
fn clone(&self) -> ErrorExtras
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more