[−][src]Struct rick_and_morty::character::Character
Character
closely matches character returned from character endpoint.
Fields
id: i64
character id
name: String
character name
status: String
character status: e.g "Alive"
species: String
character species
character_type: String
character.character_type
is equivalent to character.type
in the json object of the api.
origin: Object
character origin
has origin.name
and origin.url
.
location: Object
character location
has location.name
and location.url
.
gender: String
gender
image: String
image url
episode: Vec<String>
slices of episode urls
url: String
url
created: String
created date string
Implementations
impl Character
[src]
pub async fn location<'_>(&'_ self) -> Result<Option<Location>, Error>
[src]
Gets the Location
associated with the Character
object.
pub async fn origin<'_>(&'_ self) -> Result<Option<Location>, Error>
[src]
Gets the Location
object for the origin of the character.
pub async fn episodes<'_>(&'_ self) -> Result<Vec<Episode>, Error>
[src]
Gets the episodes the character appears in.
Trait Implementations
impl Clone for Character
[src]
impl Debug for Character
[src]
impl Default for Character
[src]
impl<'de> Deserialize<'de> for Character
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Character> for Character
[src]
impl Serialize for Character
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Character
[src]
Auto Trait Implementations
impl RefUnwindSafe for Character
[src]
impl Send for Character
[src]
impl Sync for Character
[src]
impl Unpin for Character
[src]
impl UnwindSafe for Character
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,