pub struct Continent {
pub code: String,
pub name: String,
pub countries: Vec<Country>,
}
Fields§
§code: String
2 character continent code
name: String
Full name of continent.
countries: Vec<Country>
List of countries on this continent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Continent
impl<'de> Deserialize<'de> for Continent
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 Continent
impl RefUnwindSafe for Continent
impl Send for Continent
impl Sync for Continent
impl Unpin for Continent
impl UnwindSafe for Continent
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