cairo_lang_starknet/plugin/
aux_data.rsuse cairo_lang_defs::plugin::GeneratedFileAuxData;
use super::events::EventData;
#[derive(Debug, PartialEq, Eq)]
pub struct StarkNetContractAuxData {
pub contract_name: smol_str::SmolStr,
}
impl GeneratedFileAuxData for StarkNetContractAuxData {
fn as_any(&self) -> &dyn std::any::Any {
self
}
fn eq(&self, other: &dyn GeneratedFileAuxData) -> bool {
if let Some(other) = other.as_any().downcast_ref::<Self>() { self == other } else { false }
}
}
#[derive(Debug, PartialEq, Eq)]
pub struct StarkNetEventAuxData {
pub event_data: EventData,
}
impl GeneratedFileAuxData for StarkNetEventAuxData {
fn as_any(&self) -> &dyn std::any::Any {
self
}
fn eq(&self, other: &dyn GeneratedFileAuxData) -> bool {
if let Some(other) = other.as_any().downcast_ref::<Self>() { self == other } else { false }
}
}