Skip to main content

ResourceOutputsDefinition

Trait ResourceOutputsDefinition 

Source
pub trait ResourceOutputsDefinition:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn get_resource_type(&self) -> ResourceType;
    fn as_any(&self) -> &dyn Any;
    fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>;
    fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool;
    fn to_json_value(&self) -> Result<Value>;
}
Expand description

Trait that defines the interface for all resource output types in the Alien system. This trait enables extensibility by allowing new resource output types to be registered and managed alongside built-in resource outputs.

Required Methods§

Source

fn get_resource_type(&self) -> ResourceType

Returns the resource type for this instance

Source

fn as_any(&self) -> &dyn Any

Provides access to the underlying concrete type for downcasting

Source

fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>

Creates a boxed clone of this resource outputs

Source

fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool

For equality comparison between resource outputs

Source

fn to_json_value(&self) -> Result<Value>

Serialize this resource outputs to a JSON value (without the “type” tag - that’s added by ResourceOutputs)

Trait Implementations§

Source§

impl Clone for Box<dyn ResourceOutputsDefinition>

Clone implementation for boxed ResourceOutputsDefinition trait objects

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§