pub struct CountryBlock {
pub country: Option<String>,
pub reason: String,
}Expand description
The block answer of a failed country check: the reference
IpAccessResult reason and the resolved country when one exists.
Fields§
§country: Option<String>The resolved country code, absent for an unresolved address (the generic reason carries the IP instead).
reason: StringThe reference IpAccessResult.reason
("IP from blocked country: {code}", or the generic list reason
for an unresolved address).
Trait Implementations§
Source§impl Clone for CountryBlock
impl Clone for CountryBlock
Source§impl Debug for CountryBlock
impl Debug for CountryBlock
Source§impl Display for CountryBlock
impl Display for CountryBlock
impl Eq for CountryBlock
Source§impl PartialEq for CountryBlock
impl PartialEq for CountryBlock
impl StructuralPartialEq for CountryBlock
Auto Trait Implementations§
impl Freeze for CountryBlock
impl RefUnwindSafe for CountryBlock
impl Send for CountryBlock
impl Sync for CountryBlock
impl Unpin for CountryBlock
impl UnsafeUnpin for CountryBlock
impl UnwindSafe for CountryBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.