entities.rs 323 B

1234567891011121314
  1. use crate::entities::FieldType;
  2. use grid_rev_model::FieldTypeRevision;
  3. #[derive(Hash, Eq, PartialEq, Debug, Clone)]
  4. pub struct SortType {
  5. pub field_id: String,
  6. pub field_type: FieldType,
  7. }
  8. impl Into<FieldTypeRevision> for SortType {
  9. fn into(self) -> FieldTypeRevision {
  10. self.field_type.into()
  11. }
  12. }