pulumi_wasm_rust

Enum OneOf3

Source
pub enum OneOf3<A: Serialize + Debug, B: Serialize + Debug, C: Serialize + Debug> {
    Left(A),
    Middle(B),
    Right(C),
}

Variants§

§

Left(A)

§

Middle(B)

§

Right(C)

Implementations§

Source§

impl<A: Serialize + Debug, B: Serialize + Debug, C: Serialize + Debug> OneOf3<A, B, C>

Source

pub fn left(a: A) -> Self

Source

pub fn middle(b: B) -> Self

Source

pub fn right(c: C) -> Self

Trait Implementations§

Source§

impl<A: Debug + Serialize + Debug, B: Debug + Serialize + Debug, C: Debug + Serialize + Debug> Debug for OneOf3<A, B, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, A, B, C> Deserialize<'de> for OneOf3<A, B, C>
where A: Deserialize<'de> + Serialize + Debug, B: Deserialize<'de> + Serialize + Debug, C: Deserialize<'de> + Serialize + Debug,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<A, B, C> Serialize for OneOf3<A, B, C>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<A, B, C> Freeze for OneOf3<A, B, C>
where A: Freeze, B: Freeze, C: Freeze,

§

impl<A, B, C> RefUnwindSafe for OneOf3<A, B, C>

§

impl<A, B, C> Send for OneOf3<A, B, C>
where A: Send, B: Send, C: Send,

§

impl<A, B, C> Sync for OneOf3<A, B, C>
where A: Sync, B: Sync, C: Sync,

§

impl<A, B, C> Unpin for OneOf3<A, B, C>
where A: Unpin, B: Unpin, C: Unpin,

§

impl<A, B, C> UnwindSafe for OneOf3<A, B, C>
where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOutput<T> for T
where T: Serialize,

Source§

fn create_output(&self, engine: &PulumiContext) -> Output<T>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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