[][src]Enum aws_iam::model::containers::OneOrAny

pub enum OneOrAny<T: Clone = String> where
    T: Clone
{ Any, One(T), AnyOf(Vec<T>), }

A container used by a number of elements where the JSON serialization may be a wild-card value, a single string, or an array of string values.

Variants

Any

The wildcard value, may be Any or All depending on use.

One(T)

One element of type T

AnyOf(Vec<T>)

A JSON array with elements of type T.

Methods

impl<T> OneOrAny<T> where
    T: Clone
[src]

pub fn is_any(&self) -> bool[src]

Returns true if the option is an Any value.

pub fn is_one(&self) -> bool[src]

Returns true if the option is an One value.

pub fn is_any_of(&self) -> bool[src]

Returns true if the option is an AnyOf value.

pub fn one(self) -> Option<T>[src]

Converts from OneOrAny to Option.

Converts self into an Option<T>, consuming self, and discarding either Any or AnyOf values.

pub fn any_of(self) -> Option<Vec<T>>[src]

Converts from OneOrAny to Option.

Converts self into an Option<T>, consuming self, and discarding either Any or One values.

Trait Implementations

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

impl<T: PartialEq + Clone> PartialEq<OneOrAny<T>> for OneOrAny<T> where
    T: Clone
[src]

impl<T: Debug + Clone> Debug for OneOrAny<T> where
    T: Clone
[src]

impl<T: Clone> StructuralPartialEq for OneOrAny<T> where
    T: Clone
[src]

impl<T: Clone> Serialize for OneOrAny<T> where
    T: Clone,
    T: Serialize
[src]

impl<'de, T: Clone> Deserialize<'de> for OneOrAny<T> where
    T: Clone,
    T: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T> Send for OneOrAny<T> where
    T: Send

impl<T> Sync for OneOrAny<T> where
    T: Sync

impl<T> Unpin for OneOrAny<T> where
    T: Unpin

impl<T> UnwindSafe for OneOrAny<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for OneOrAny<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,