diff --git a/server/src/bin/server.rs b/server/src/bin/server.rs index a5d4fe9..d3c01d1 100644 --- a/server/src/bin/server.rs +++ b/server/src/bin/server.rs @@ -18,7 +18,6 @@ use server::{ error::ServerError, graphql::{GraphqlSchema, QueryRoot}, }; -use shared::Message; #[get("/refresh")] async fn refresh(nm: &State) -> Result, Debug> { diff --git a/server/src/graphql.rs b/server/src/graphql.rs index e5fd124..11534d6 100644 --- a/server/src/graphql.rs +++ b/server/src/graphql.rs @@ -63,7 +63,7 @@ pub struct Message { } #[derive(Debug)] -struct UnhandledContentType { +pub struct UnhandledContentType { text: String, } @@ -75,7 +75,7 @@ impl UnhandledContentType { } #[derive(Debug)] -struct PlainText { +pub struct PlainText { text: String, } @@ -87,7 +87,7 @@ impl PlainText { } #[derive(Debug)] -struct Html { +pub struct Html { html: String, }