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;
|
||||
|
||||
pub use crate::document::definition::DocDef;
|
||||
pub use crate::document::{definition::DocDef, field::FieldType};
|
||||
pub use query::Query;
|
||||
|
||||
pub enum UserAction {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
pub mod action;
|
||||
pub mod document;
|
||||
mod document;
|
||||
mod message;
|
||||
mod mtterror;
|
||||
mod name;
|
||||
@ -107,14 +107,11 @@ impl MoreThanText {
|
||||
output
|
||||
}
|
||||
|
||||
pub fn request<UA>(&mut self, req: UA)
|
||||
pub fn request<UA>(&mut self, req: UA) -> Result<String, MTTError>
|
||||
where
|
||||
UA: Into<UserAction>,
|
||||
{
|
||||
}
|
||||
|
||||
pub fn create_document(&mut self, docdef: DocDef) -> Result<(), MTTError> {
|
||||
Ok(())
|
||||
Ok("something".to_string())
|
||||
}
|
||||
|
||||
pub fn get_document(&self, name: &str, id: &str) -> Result<String, MTTError> {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
use morethantext::{
|
||||
action::Query,
|
||||
document::{definition::DocDef, field::FieldType},
|
||||
action::{DocDef, FieldType, Query},
|
||||
MTTError, MoreThanText, Name,
|
||||
};
|
||||
use uuid::Uuid;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user