Setting up a general request function.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
This commit is contained in:
parent
ff7eaa1a96
commit
ca68759c79
@ -1,6 +1,6 @@
|
|||||||
mod query;
|
mod query;
|
||||||
|
|
||||||
pub use crate::document::definition::DocDef;
|
pub use crate::document::{definition::DocDef, field::FieldType};
|
||||||
pub use query::Query;
|
pub use query::Query;
|
||||||
|
|
||||||
pub enum UserAction {
|
pub enum UserAction {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
pub mod action;
|
pub mod action;
|
||||||
pub mod document;
|
mod document;
|
||||||
mod message;
|
mod message;
|
||||||
mod mtterror;
|
mod mtterror;
|
||||||
mod name;
|
mod name;
|
||||||
@ -107,14 +107,11 @@ impl MoreThanText {
|
|||||||
output
|
output
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn request<UA>(&mut self, req: UA)
|
pub fn request<UA>(&mut self, req: UA) -> Result<String, MTTError>
|
||||||
where
|
where
|
||||||
UA: Into<UserAction>,
|
UA: Into<UserAction>,
|
||||||
{
|
{
|
||||||
}
|
Ok("something".to_string())
|
||||||
|
|
||||||
pub fn create_document(&mut self, docdef: DocDef) -> Result<(), MTTError> {
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_document(&self, name: &str, id: &str) -> Result<String, MTTError> {
|
pub fn get_document(&self, name: &str, id: &str) -> Result<String, MTTError> {
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
use morethantext::{
|
use morethantext::{
|
||||||
action::Query,
|
action::{DocDef, FieldType, Query},
|
||||||
document::{definition::DocDef, field::FieldType},
|
|
||||||
MTTError, MoreThanText, Name,
|
MTTError, MoreThanText, Name,
|
||||||
};
|
};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user