#[non_exhaustive]pub enum PolicyInputConsumerNetworkClass {
Unknown,
Home,
Corp,
Public,
Vpn,
}Available on crate feature
policy only.Expand description
PolicyInputConsumerNetworkClass
JSON schema
{
"type": "string",
"enum": [
"unknown",
"home",
"corp",
"public",
"vpn"
]
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PolicyInputConsumerNetworkClass
impl Clone for PolicyInputConsumerNetworkClass
Source§fn clone(&self) -> PolicyInputConsumerNetworkClass
fn clone(&self) -> PolicyInputConsumerNetworkClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PolicyInputConsumerNetworkClass
Source§impl<'de> Deserialize<'de> for PolicyInputConsumerNetworkClass
impl<'de> Deserialize<'de> for PolicyInputConsumerNetworkClass
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PolicyInputConsumerNetworkClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PolicyInputConsumerNetworkClass, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PolicyInputConsumerNetworkClass
Source§impl FromStr for PolicyInputConsumerNetworkClass
impl FromStr for PolicyInputConsumerNetworkClass
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
fn from_str( value: &str, ) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for PolicyInputConsumerNetworkClass
impl Ord for PolicyInputConsumerNetworkClass
Source§fn cmp(&self, other: &PolicyInputConsumerNetworkClass) -> Ordering
fn cmp(&self, other: &PolicyInputConsumerNetworkClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PolicyInputConsumerNetworkClass
impl PartialOrd for PolicyInputConsumerNetworkClass
Source§impl Serialize for PolicyInputConsumerNetworkClass
impl Serialize for PolicyInputConsumerNetworkClass
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 StructuralPartialEq for PolicyInputConsumerNetworkClass
Source§impl TryFrom<&String> for PolicyInputConsumerNetworkClass
impl TryFrom<&String> for PolicyInputConsumerNetworkClass
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &String,
) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
fn try_from( value: &String, ) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
Performs the conversion.
Source§impl TryFrom<&str> for PolicyInputConsumerNetworkClass
impl TryFrom<&str> for PolicyInputConsumerNetworkClass
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
fn try_from( value: &str, ) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
Performs the conversion.
Source§impl TryFrom<String> for PolicyInputConsumerNetworkClass
impl TryFrom<String> for PolicyInputConsumerNetworkClass
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
fn try_from( value: String, ) -> Result<PolicyInputConsumerNetworkClass, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PolicyInputConsumerNetworkClass
impl RefUnwindSafe for PolicyInputConsumerNetworkClass
impl Send for PolicyInputConsumerNetworkClass
impl Sync for PolicyInputConsumerNetworkClass
impl Unpin for PolicyInputConsumerNetworkClass
impl UnsafeUnpin for PolicyInputConsumerNetworkClass
impl UnwindSafe for PolicyInputConsumerNetworkClass
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
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.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
fn equivalent(&self, key: &K) -> bool
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.