pub struct JsonApiError { /* private fields */ }
Implementations§
Source§impl JsonApiError
impl JsonApiError
pub fn new() -> Self
pub fn finish(&self) -> Self
pub fn id(&mut self, id: String) -> &mut Self
pub fn links(&mut self, links: Vec<Link<'_, '_>>) -> &mut Self
pub fn status(&mut self, status: u32) -> &mut Self
pub fn code(&mut self, code: isize) -> &mut Self
pub fn title(&mut self, title: &str) -> &mut Self
pub fn detail(&mut self, detail: &str) -> &mut Self
pub fn source(&mut self, source: Source) -> &mut Self
Trait Implementations§
Source§impl Clone for JsonApiError
impl Clone for JsonApiError
Source§fn clone(&self) -> JsonApiError
fn clone(&self) -> JsonApiError
Returns a copy of the value. Read more
1.0.0 · 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 JsonApiError
impl Debug for JsonApiError
Source§impl Default for JsonApiError
impl Default for JsonApiError
Source§fn default() -> JsonApiError
fn default() -> JsonApiError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonApiError
impl<'de> Deserialize<'de> for JsonApiError
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 JsonApiError
impl RefUnwindSafe for JsonApiError
impl Send for JsonApiError
impl Sync for JsonApiError
impl Unpin for JsonApiError
impl UnwindSafe for JsonApiError
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