2026-02-06 12:06:51 -05:00
|
|
|
mod query;
|
|
|
|
|
|
2026-02-06 13:07:34 -05:00
|
|
|
pub use crate::document::{definition::DocDef, field::FieldType};
|
2026-02-06 12:06:51 -05:00
|
|
|
pub use query::Query;
|
2026-02-06 12:23:20 -05:00
|
|
|
|
|
|
|
|
pub enum UserAction {
|
|
|
|
|
CreateDocument(DocDef),
|
|
|
|
|
Query(Query),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl From<DocDef> for UserAction {
|
|
|
|
|
fn from(value: DocDef) -> Self {
|
|
|
|
|
Self::CreateDocument(value)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl From<Query> for UserAction {
|
|
|
|
|
fn from(value: Query) -> Self {
|
|
|
|
|
Self::Query(value)
|
|
|
|
|
}
|
|
|
|
|
}
|