pub struct ApiFields {
pub country: Option<&'static str>,
pub asn: Option<&'static str>,
pub org: Option<&'static str>,
pub continent_code: Option<&'static str>,
pub city: Option<&'static str>,
pub region: Option<&'static str>,
pub postal: Option<&'static str>,
pub timezone: Option<&'static str>,
}Expand description
Struct to map the field names that can be extracted from the response of a given API provider.
Fields§
§country: Option<&'static str>§asn: Option<&'static str>§org: Option<&'static str>§continent_code: Option<&'static str>§city: Option<&'static str>§region: Option<&'static str>§postal: Option<&'static str>§timezone: Option<&'static str>Auto Trait Implementations§
impl Freeze for ApiFields
impl RefUnwindSafe for ApiFields
impl Send for ApiFields
impl Sync for ApiFields
impl Unpin for ApiFields
impl UnwindSafe for ApiFields
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