[][src]Enum lead_oxide::types::Countries

pub enum Countries {
    AllowList(String),
    BlockList(String),
}

Variants

AllowList(String)
BlockList(String)

Implementations

impl Countries[src]

#[must_use]pub fn allow() -> CountriesBuilder[src]

#[must_use]pub fn block() -> CountriesBuilder[src]

#[must_use]pub fn allowlist(countries: &[Country]) -> Self[src]

#[must_use]pub fn blocklist(countries: &[Country]) -> Self[src]

#[must_use]pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Clone for Countries[src]

impl Debug for Countries[src]

impl Default for Countries[src]

impl From<CountriesBuilder> for Countries[src]

impl PartialEq<Countries> for Countries[src]

impl Serialize for Countries[src]

impl StructuralPartialEq for Countries[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.