feat: create a server function for deleting a project

This commit is contained in:
Matouš Volf
2024-09-08 08:21:48 +02:00
parent 7827d7f722
commit b869181dcf
2 changed files with 20 additions and 0 deletions

View File

@ -7,6 +7,12 @@ pub enum Error {
ServerInternal,
}
impl From<diesel::result::Error> for Error {
fn from(_: diesel::result::Error) -> Self {
Self::ServerInternal
}
}
// has to be implemented for Dioxus server functions
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {