#[non_exhaustive]pub struct ItemErrorDetail {
pub field: Option<String>,
pub limit: Option<u64>,
pub size: Option<u64>,
}Expand description
The optional detail of an item error. Only ANSWER_TOO_LARGE sends
one today; every other item error leaves it out, so its wire form is
{code, class, message, retry_after_ms?}.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: Option<String>The field the error is about, as the role names it in a request.
limit: Option<u64>The bound in force.
size: Option<u64>The size that broke the bound, in bytes.
Trait Implementations§
Source§impl Clone for ItemErrorDetail
impl Clone for ItemErrorDetail
Source§fn clone(&self) -> ItemErrorDetail
fn clone(&self) -> ItemErrorDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ItemErrorDetail
impl Debug for ItemErrorDetail
Source§impl Default for ItemErrorDetail
impl Default for ItemErrorDetail
Source§fn default() -> ItemErrorDetail
fn default() -> ItemErrorDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemErrorDetail
impl<'de> Deserialize<'de> for ItemErrorDetail
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ItemErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ItemErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ItemErrorDetail
Source§impl PartialEq for ItemErrorDetail
impl PartialEq for ItemErrorDetail
Source§impl Serialize for ItemErrorDetail
impl Serialize for ItemErrorDetail
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ItemErrorDetail
Auto Trait Implementations§
impl Freeze for ItemErrorDetail
impl RefUnwindSafe for ItemErrorDetail
impl Send for ItemErrorDetail
impl Sync for ItemErrorDetail
impl Unpin for ItemErrorDetail
impl UnsafeUnpin for ItemErrorDetail
impl UnwindSafe for ItemErrorDetail
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.