pulumi_wasm_rust

Enum OneOf4

Source
pub enum OneOf4<A: Serialize + Debug, B: Serialize + Debug, C: Serialize + Debug, D: Serialize + Debug> {
    Left(A),
    Middle1(B),
    Middle2(C),
    Right(D),
}

Variants§

§

Left(A)

§

Middle1(B)

§

Middle2(C)

§

Right(D)

Implementations§

Source§

impl<A: Serialize + Debug, B: Serialize + Debug, C: Serialize + Debug, D: Serialize + Debug> OneOf4<A, B, C, D>

Source

pub fn left(a: A) -> Self

Source

pub fn middle1(b: B) -> Self

Source

pub fn middle2(c: C) -> Self

Source

pub fn right(d: D) -> Self

Trait Implementations§

Source§

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

Source§

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

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

impl<'de, A, B, C, D> Deserialize<'de> for OneOf4<A, B, C, D>
where A: Deserialize<'de> + Serialize + Debug, B: Deserialize<'de> + Serialize + Debug, C: Deserialize<'de> + Serialize + Debug, D: 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, D> Serialize for OneOf4<A, B, C, D>

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, D> Freeze for OneOf4<A, B, C, D>
where A: Freeze, B: Freeze, C: Freeze, D: Freeze,

§

impl<A, B, C, D> RefUnwindSafe for OneOf4<A, B, C, D>

§

impl<A, B, C, D> Send for OneOf4<A, B, C, D>
where A: Send, B: Send, C: Send, D: Send,

§

impl<A, B, C, D> Sync for OneOf4<A, B, C, D>
where A: Sync, B: Sync, C: Sync, D: Sync,

§

impl<A, B, C, D> Unpin for OneOf4<A, B, C, D>
where A: Unpin, B: Unpin, C: Unpin, D: Unpin,

§

impl<A, B, C, D> UnwindSafe for OneOf4<A, B, C, D>

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>,