pub struct Planet {
pub climate: String,
pub diameter: String,
pub gravity: String,
pub name: String,
pub orbital_period: String,
pub population: String,
pub residents: Vec<String>,
pub rotation_period: String,
pub surface_water: String,
pub terrain: String,
pub url: String,
}
Expand description
Planet resource within the Star Wars universe.
Fields§
§climate: String
§diameter: String
§gravity: String
§name: String
§orbital_period: String
§population: String
§residents: Vec<String>
§rotation_period: String
§surface_water: String
§terrain: String
§url: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Planet
impl<'de> Deserialize<'de> for Planet
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
Source§impl QueryDetail for Planet
impl QueryDetail for Planet
Auto Trait Implementations§
impl Freeze for Planet
impl RefUnwindSafe for Planet
impl Send for Planet
impl Sync for Planet
impl Unpin for Planet
impl UnwindSafe for Planet
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