pub struct ResourceOutputs { /* private fields */ }Expand description
New Resource outputs wrapper that can hold any ResourceOutputsDefinition. This replaces the old ResourceOutputs enum to enable runtime extensibility.
Implementations§
Source§impl ResourceOutputs
impl ResourceOutputs
Sourcepub fn new<T: ResourceOutputsDefinition>(outputs: T) -> Self
pub fn new<T: ResourceOutputsDefinition>(outputs: T) -> Self
Creates a new ResourceOutputs from any type that implements ResourceOutputsDefinition
Sourcepub fn as_resource_outputs(&self) -> &dyn ResourceOutputsDefinition
pub fn as_resource_outputs(&self) -> &dyn ResourceOutputsDefinition
Provides access to the underlying ResourceOutputsDefinition trait object
Sourcepub fn downcast_ref<T: ResourceOutputsDefinition + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: ResourceOutputsDefinition + 'static>(&self) -> Option<&T>
Generic downcasting for any type
Trait Implementations§
Source§impl Clone for ResourceOutputs
impl Clone for ResourceOutputs
Source§fn clone(&self) -> ResourceOutputs
fn clone(&self) -> ResourceOutputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceOutputs
impl Debug for ResourceOutputs
Source§impl<'de> Deserialize<'de> for ResourceOutputs
impl<'de> Deserialize<'de> for ResourceOutputs
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 PartialEq for ResourceOutputs
impl PartialEq for ResourceOutputs
Source§impl Serialize for ResourceOutputs
impl Serialize for ResourceOutputs
impl Eq for ResourceOutputs
Auto Trait Implementations§
impl Freeze for ResourceOutputs
impl !RefUnwindSafe for ResourceOutputs
impl Send for ResourceOutputs
impl Sync for ResourceOutputs
impl Unpin for ResourceOutputs
impl UnsafeUnpin for ResourceOutputs
impl !UnwindSafe for ResourceOutputs
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.