1//! Trait to associate a field type provider with a struct. 2 3/// Used by code produced from Toql derive. 4pub trait QueryFields { 5 type FieldsType; 6 7 fn fields() -> Self::FieldsType; 8 fn fields_from_path(path: String) -> Self::FieldsType; 9}