[−][src]Enum aws_iam::model::containers::OneOrAny
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
The wildcard value, may be Any or All depending on use.
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]
T: Clone,
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
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
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]
T: Clone,
impl<T: PartialEq + Clone> PartialEq<OneOrAny<T>> for OneOrAny<T> where
T: Clone,
[src]
T: Clone,
impl<T: Debug + Clone> Debug for OneOrAny<T> where
T: Clone,
[src]
T: Clone,
impl<T: Clone> StructuralPartialEq for OneOrAny<T> where
T: Clone,
[src]
T: Clone,
impl<T: Clone> Serialize for OneOrAny<T> where
T: Clone,
T: Serialize,
[src]
T: Clone,
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T: Clone> Deserialize<'de> for OneOrAny<T> where
T: Clone,
T: Deserialize<'de>,
[src]
T: Clone,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T> Send for OneOrAny<T> where
T: Send,
T: Send,
impl<T> Sync for OneOrAny<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OneOrAny<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for OneOrAny<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for OneOrAny<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,