mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 17:02:32 +00:00
Generate everything strum does myself (no duplicate prop names)
This commit is contained in:
@@ -60,7 +60,9 @@ pub enum CommonPropertiesPropName {
|
||||
}
|
||||
|
||||
pub trait Resource: Clone + 'static {
|
||||
type PropName: ResourcePropName + From<Self::Prop> + Into<&'static str>;
|
||||
type PropName: ResourcePropName
|
||||
+ From<Self::Prop>
|
||||
+ Into<(Option<Namespace<'static>>, &'static str)>;
|
||||
type Prop: ResourceProp + PartialEq + Clone + EnumVariants;
|
||||
type Error: ResponseError + From<crate::Error>;
|
||||
type PrincipalResource: Resource + NamedRoute;
|
||||
|
||||
Reference in New Issue
Block a user