Skip to main content

OneOf4

Enum OneOf4 

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

Variants§

§

Left(A)

§

Middle1(B)

§

Middle2(C)

§

Right(D)

Implementations§

Source§

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

Source§

fn from_pulumi_value(value: &PulumiValue) -> Result<Self>

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
Source§

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

Source§

async fn to_pulumi_value(&self) -> PulumiValue

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> UnsafeUnpin for OneOf4<A, B, C, D>

§

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<O> ObjectMarkerFor<Local> for O
where O: 'static,

§

fn run_creation_hooks(report: ReportMut<'_, Dynamic, Local>)

§

impl<O> ObjectMarkerFor<SendSync> for O
where O: 'static + Send + Sync,

§

fn run_creation_hooks(report: ReportMut<'_>)

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToPulumiAny for T
where T: ToPulumiValue + Send + Sync + 'static,

Source§

fn to_pulumi_any(self) -> PulumiValueMiddleware

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

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