pulumi_wasm_rust

Enum InputOrOutput

Source
pub enum InputOrOutput<T> {
    StaticValue(T),
    Output(Output<T>),
}
Expand description

Wrapper for either static value or Output

Variants§

§

StaticValue(T)

§

Output(Output<T>)

Trait Implementations§

Source§

impl<T: Default + Serialize> Default for InputOrOutput<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<&str> for InputOrOutput<Option<String>>

Source§

fn from(value: &str) -> Self

Converts to this type from the input type.
Source§

impl From<&str> for InputOrOutput<String>

Source§

fn from(value: &str) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[&str; N]> for InputOrOutput<Option<Vec<String>>>

Source§

fn from(value: [&str; N]) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[&str; N]> for InputOrOutput<Vec<String>>

Source§

fn from(value: [&str; N]) -> Self

Converts to this type from the input type.
Source§

impl<T, const N: usize> From<[T; N]> for InputOrOutput<Option<Vec<T>>>
where T: Serialize,

Source§

fn from(value: [T; N]) -> Self

Converts to this type from the input type.
Source§

impl<T, const N: usize> From<[T; N]> for InputOrOutput<Vec<T>>
where T: Serialize,

Source§

fn from(value: [T; N]) -> Self

Converts to this type from the input type.
Source§

impl<T: Serialize + DeserializeOwned> From<Output<T>> for InputOrOutput<Option<T>>

Source§

fn from(output: Output<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Output<T>> for InputOrOutput<T>

Source§

fn from(output: Output<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Serialize> From<T> for InputOrOutput<Option<T>>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl<T: Serialize> From<T> for InputOrOutput<T>

Source§

fn from(value: T) -> InputOrOutput<T>

Converts to this type from the input type.
Source§

impl From<Vec<&str>> for InputOrOutput<Option<Vec<String>>>

Source§

fn from(value: Vec<&str>) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<&str>> for InputOrOutput<Vec<String>>

Source§

fn from(value: Vec<&str>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T> Freeze for InputOrOutput<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for InputOrOutput<T>
where T: RefUnwindSafe,

§

impl<T> Send for InputOrOutput<T>
where T: Send,

§

impl<T> Sync for InputOrOutput<T>
where T: Sync,

§

impl<T> Unpin for InputOrOutput<T>
where T: Unpin,

§

impl<T> UnwindSafe for InputOrOutput<T>
where T: 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, 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.