#[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§impl Debug for ItemErrorDetail
impl Debug for ItemErrorDetail
Source§impl Default for ItemErrorDetail
impl Default for ItemErrorDetail
Source§impl<'de> Deserialize<'de> for ItemErrorDetail
impl<'de> Deserialize<'de> for ItemErrorDetail
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>,
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
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