Struct envelope::ErrorExtras
zaun_community_protocol::envelope::ErrorExtras · Struct
pub struct ErrorExtras { … }The extra fields of the protocol Each applies to the codes named on it.
Fields
Section titled “Fields”field: Option<String>
Section titled “field: Option<String>”BAD_REQUEST: the offending field, when known ("body.content", "request_id").
limit: Option<u64>
Section titled “limit: Option<u64>”PAYLOAD_TOO_LARGE: the limit exceeded.
supported: Option<VersionRange>
Section titled “supported: Option<VersionRange>”UNSUPPORTED_VERSION: the host’s range.
feature: Option<String>
Section titled “feature: Option<String>”UNSUPPORTED_FEATURE: the feature.
missing: Option<u64>
Section titled “missing: Option<u64>”FORBIDDEN: the missing permission bits, as a JSON decimal string.
reason: Option<Reason>
Section titled “reason: Option<Reason>”FORBIDDEN (hierarchy, probation, lockdown) or CONFLICT reason.
until: Option<u64>
Section titled “until: Option<u64>”SUSPENDED / TIMED_OUT: end of the restriction, ms since the Unix epoch.
retry_after_ms: Option<u64>
Section titled “retry_after_ms: Option<u64>”SLOWMODE_ACTIVE, RATE_LIMITED, BUSY: milliseconds to wait.
scope: Option<RateScope>
Section titled “scope: Option<RateScope>”RATE_LIMITED: the scope whose limit was hit.
category: Option<RateCategory>
Section titled “category: Option<RateCategory>”RATE_LIMITED: the category, when one applies.
stream: Option<Stream>
Section titled “stream: Option<Stream>”RESYNC_REQUIRED: the stream to resynchronise.
channel_id: Option<ChannelId>
Section titled “channel_id: Option<ChannelId>”RESYNC_REQUIRED: the channel, for a channel stream.
object: Option<String>
Section titled “object: Option<String>”INVALID_SIGNATURE: which signed object failed ("descriptor", "delegation", …).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq