pub enum Region {
Africa,
Asia,
Europe,
NorthAmerica,
Oceania,
SouthAmerica,
}Expand description
A very broad region id, useful for high-level operations. Roughly corresponds to populated continents.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Region, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Region, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IpData for Region
impl IpData for Region
Source§fn from_record(record: &StringRecord) -> Result<Option<Region>, FromCsvError>
fn from_record(record: &StringRecord) -> Result<Option<Region>, FromCsvError>
db-ip data consists of csv records, any data must be derived from then.
Should return [
Err(Error::InvalidRecord)] if the fields are insufficient and the loading should
be aborted, and [Ok(None)] if the field is fine, but the data is irrelevant. Read moreSource§impl Serialize for Region
impl Serialize for Region
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Region
impl Eq for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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