Skip to main content

has_model_attr

Function has_model_attr 

Source
pub fn has_model_attr(attrs: &[Attribute]) -> bool
Expand description

Does the item carry the framework’s #[model(...)] attribute macro? Such a struct expands to #[derive(Table)] plus app metadata, so the schema layer treats it exactly like a hand-derived table. (The framework crates are not a dependency here — this is a purely syntactic check, in the same spirit as has_derive.)