Struct rtdlib::types::GetCountryCode [−][src]
pub struct GetCountryCode { /* fields omitted */ }
Expand description
Uses current user IP to found their country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization
Implementations
Trait Implementations
Performs the conversion.
Returns the “default value” for a type. Read more
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 GetCountryCode
impl Send for GetCountryCode
impl Sync for GetCountryCode
impl Unpin for GetCountryCode
impl UnwindSafe for GetCountryCode
Blanket Implementations
Mutably borrows from an owned value. Read more