[][src]Struct rick_and_morty::Object

pub struct Object {
    pub name: String,
    pub url: String,

Object is a convenient wrapper for json objects returned from API for related entities.

Related entities are not eagerly fetched by default since each call is another asynchronous call.

Example: a character has a location object with the shape:

    "name": "{name}",
    "url": "{url}"


name: String

name is the equivalent name from the api.

url: String

url of the object

Trait Implementations

impl Clone for Object[src]

impl Debug for Object[src]

impl Default for Object[src]

impl<'de> Deserialize<'de> for Object[src]

impl PartialEq<Object> for Object[src]

impl Serialize for Object[src]

impl StructuralPartialEq for Object[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.