pub struct InlineStrError {
pub got_bytes: usize,
pub capacity: usize,
}Expand description
Why a &str did not fit an InlineStr.
Carries both numbers so the generated 422 can name the bound without re-deriving it from the schema.
Fields§
§got_bytes: usizeThe length of the offered value, in bytes.
capacity: usizeThe capacity of the target InlineStr, in bytes.
Trait Implementations§
Source§impl Clone for InlineStrError
impl Clone for InlineStrError
impl Copy for InlineStrError
Source§impl Debug for InlineStrError
impl Debug for InlineStrError
Source§impl Display for InlineStrError
impl Display for InlineStrError
impl Eq for InlineStrError
Source§impl Error for InlineStrError
impl Error for InlineStrError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InlineStrError
impl PartialEq for InlineStrError
impl StructuralPartialEq for InlineStrError
Auto Trait Implementations§
impl Freeze for InlineStrError
impl RefUnwindSafe for InlineStrError
impl Send for InlineStrError
impl Sync for InlineStrError
impl Unpin for InlineStrError
impl UnsafeUnpin for InlineStrError
impl UnwindSafe for InlineStrError
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