blueprint_core/extract/
rejection.rs

1//! Rejection response types.
2
3use crate::__define_rejection as define_rejection;
4
5define_rejection! {
6    #[body = "Request body didn't contain valid UTF-8"]
7    /// Rejection type used when buffering a [`JobCall`] into a [`String`] if the
8    /// body doesn't contain valid UTF-8.
9    ///
10    /// [`JobCall`]: crate::JobCall
11    /// [`String`]: https://doc.rust-lang.org/std/string/struct.String.html
12    pub struct InvalidUtf8(Error);
13}