You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubstructLorem{#[attire(meta_item)]ipsum:Dolor}implTryFrom<syn::MetaItem>forDolor{typeError = String;fntry_from(v: syn::MetaItem) -> Result<Self,Self::Error>{// do stuff.}}
In parallel, it'd be useful if prom-attire could generate such implementations. This would make it easier to create reusable parts that adhered to the normal attribute format.
The text was updated successfully, but these errors were encountered:
A related enhancement would be #[attire(meta_item="path::to::function")]. That would enable overrides for cases where the type was remote. This might best be done with a trait defined by the prom-attire crate and a blanket impl of that trait for TryFrom<syn::MetaItem>.
It would be useful to write something like...
In parallel, it'd be useful if prom-attire could generate such implementations. This would make it easier to create reusable parts that adhered to the normal attribute format.
The text was updated successfully, but these errors were encountered: