pub enum OneOf2<A: Debug, B: Debug> {
Left(A),
Right(B),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de, A, B> Deserialize<'de> for OneOf2<A, B>
impl<'de, A, B> Deserialize<'de> for OneOf2<A, B>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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> FromPulumiValue for OneOf2<A, B>
impl<A, B> FromPulumiValue for OneOf2<A, B>
fn from_pulumi_value(value: &PulumiValue) -> Result<Self>
Source§impl<A, B> ToPulumiValue for OneOf2<A, B>
impl<A, B> ToPulumiValue for OneOf2<A, B>
async fn to_pulumi_value(&self) -> PulumiValue
impl<A: Debug, B: Debug> StructuralPartialEq for OneOf2<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for OneOf2<A, B>
impl<A, B> RefUnwindSafe for OneOf2<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for OneOf2<A, B>
impl<A, B> Sync for OneOf2<A, B>
impl<A, B> Unpin for OneOf2<A, B>
impl<A, B> UnsafeUnpin for OneOf2<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for OneOf2<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
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].