[−][src]Struct j_api::JsonApi
Methods
impl JsonApi
[src]
pub fn new() -> Self
[src]
pub fn data(resource: impl ResourceTrait) -> Self
[src]
pub fn collection(resources: Vec<impl ResourceTrait>) -> Self
[src]
pub fn error(error: JsonApiError) -> Self
[src]
pub fn errors(errors: Vec<JsonApiError>) -> Self
[src]
pub fn links(&mut self, links: Vec<Link>) -> &mut Self
[src]
pub fn to_response(&self) -> Result<Self, Vec<ValidationError>>
[src]
Trait Implementations
impl Clone for JsonApi
[src]
impl Debug for JsonApi
[src]
impl Default for JsonApi
[src]
impl Deserialize<'static> for JsonApi
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
[src]
__D: Deserializer<'static>,
impl Serialize for JsonApi
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsonApi
impl Send for JsonApi
impl Sync for JsonApi
impl Unpin for JsonApi
impl UnwindSafe for JsonApi
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,