Initial commit

This commit is contained in:
Maurus Decimus
2026-05-29 18:02:15 +02:00
commit 576073f8c9
263 changed files with 78638 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
#[derive(Debug, thiserror::Error)]
pub enum SeedError {
#[error("http error: {0}")]
Http(String),
#[error("jmap method error ({method}): {detail}")]
Method { method: String, detail: String },
#[error("unexpected jmap response: {0}")]
Shape(String),
#[error("resource error: {0}")]
Resource(String),
#[error("json error: {0}")]
Json(#[from] serde_json::Error),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
}
pub type SeedResult<T> = Result<T, SeedError>;