[][src]Enum apollo_client::IpValue

pub enum IpValue<S: AsRef<str>> {
    HostName,
    HostIpRegex(S),
    Custom(S),
}

Apollo config api ip param value.

Variants

HostName

Get the hostname of the machine.

HostIpRegex(S)

Get the first ip of the machine match the prefix, such as ^10\.2\..

Custom(S)

Specify your own IP address or other text.

Trait Implementations

impl<S: Clone + AsRef<str>> Clone for IpValue<S>[src]

impl<S: Debug + AsRef<str>> Debug for IpValue<S>[src]

impl<'de, S: AsRef<str>> Deserialize<'de> for IpValue<S> where
    S: Deserialize<'de>, 
[src]

impl<S: PartialEq + AsRef<str>> PartialEq<IpValue<S>> for IpValue<S>[src]

impl<S: AsRef<str>> Serialize for IpValue<S> where
    S: Serialize
[src]

impl<S: AsRef<str>> StructuralPartialEq for IpValue<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for IpValue<S> where
    S: RefUnwindSafe

impl<S> Send for IpValue<S> where
    S: Send

impl<S> Sync for IpValue<S> where
    S: Sync

impl<S> Unpin for IpValue<S> where
    S: Unpin

impl<S> UnwindSafe for IpValue<S> where
    S: UnwindSafe

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.