Struct weather_cli::user_setup::City
source · pub struct City {
pub name: String,
pub lat: f64,
pub lon: f64,
pub country: String,
}Expand description
Type for the user setting file.
Fields§
§name: String§lat: f64§lon: f64§country: StringTrait Implementations§
source§impl<'de> Deserialize<'de> for City
impl<'de> Deserialize<'de> for City
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 RefUnwindSafe for City
impl Send for City
impl Sync for City
impl Unpin for City
impl UnwindSafe for City
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