Moved UserAction into Action.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
mod query;
|
||||
|
||||
pub use crate::document::definition::DocDef;
|
||||
pub use query::Query;
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user