Trait sql::query_model::attribute::core::Attribute [−][src]
pub(crate) trait Attribute: Debug + 'static {
fn attr_id(&self) -> &'static str;
fn requires(&self) -> Vec<Box<dyn Attribute>>ⓘ;
fn derive(&self, model: &mut Model, box_id: BoxId);
}
Expand description
A trait that defines the logic for deriving an attribute.
Required methods
A vector of attributes that need to be derived before this attribute.
Trait Implementations
A naive Hash
for attributes that delegates to the associated
std::any::TypeId
.
A naive PartialEq
implementation for Attribute
trait objects that
differentiates two attributes based on their std::any::TypeId
.