pub trait ResourceOutputsDefinition:
Debug
+ Send
+ Sync
+ 'static
+ Serialize
+ Deserialize {
// Required methods
fn resource_type() -> ResourceType
where Self: Sized;
fn as_any(&self) -> &dyn Any;
fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>;
fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool;
}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§
Sourcefn resource_type() -> ResourceTypewhere
Self: Sized,
fn resource_type() -> ResourceTypewhere
Self: Sized,
Returns the resource type this output corresponds to
Sourcefn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>
fn box_clone(&self) -> Box<dyn ResourceOutputsDefinition>
Creates a boxed clone of this resource outputs
Sourcefn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool
fn outputs_eq(&self, other: &dyn ResourceOutputsDefinition) -> bool
For equality comparison between resource outputs
Trait Implementations§
Source§impl Clone for Box<dyn ResourceOutputsDefinition>
Clone implementation for boxed ResourceOutputsDefinition trait objects
impl Clone for Box<dyn ResourceOutputsDefinition>
Clone implementation for boxed ResourceOutputsDefinition trait objects