Setting up a general request function.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s

This commit is contained in:
Jeff Baskin 2026-02-06 13:07:34 -05:00
parent ff7eaa1a96
commit ca68759c79
3 changed files with 5 additions and 9 deletions

View File

@ -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 {

View File

@ -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> {

View File

@ -1,6 +1,5 @@
use morethantext::{
action::Query,
document::{definition::DocDef, field::FieldType},
action::{DocDef, FieldType, Query},
MTTError, MoreThanText, Name,
};
use uuid::Uuid;