pub struct CountryResponse {
pub time: String,
pub total: i32,
pub prev_page: Option<String>,
pub next_page: Option<String>,
pub results: Vec<CountryResult>,
}Expand description
A struct containing countries results and other information about the countries
Fields§
§time: String§total: i32§prev_page: Option<String>§next_page: Option<String>§results: Vec<CountryResult>Trait Implementations§
Source§impl Clone for CountryResponse
impl Clone for CountryResponse
Source§fn clone(&self) -> CountryResponse
fn clone(&self) -> CountryResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CountryResponse
impl Debug for CountryResponse
Source§impl<'de> Deserialize<'de> for CountryResponse
impl<'de> Deserialize<'de> for CountryResponse
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 CountryResponse
impl RefUnwindSafe for CountryResponse
impl Send for CountryResponse
impl Sync for CountryResponse
impl Unpin for CountryResponse
impl UnwindSafe for CountryResponse
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