pub struct BadRequestResponse {
pub status: u16,
pub message: String,
pub data: HashMap<String, BadRequestField>,
}Expand description
This error represents the error returned by the PocketBase
instance in case of a 400 error.
Fields§
§status: u16HTTP Status Code.
message: StringDescription from given by PocketBase about why the error happened.
data: HashMap<String, BadRequestField>A list of fields that caused the error.
Trait Implementations§
Source§impl Debug for BadRequestResponse
impl Debug for BadRequestResponse
Source§impl<'de> Deserialize<'de> for BadRequestResponse
impl<'de> Deserialize<'de> for BadRequestResponse
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
Auto Trait Implementations§
impl Freeze for BadRequestResponse
impl RefUnwindSafe for BadRequestResponse
impl Send for BadRequestResponse
impl Sync for BadRequestResponse
impl Unpin for BadRequestResponse
impl UnwindSafe for BadRequestResponse
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