1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Error)] pub enum StoreError { #[error("store init failed: {0}")] Init(String), #[error("insert failed: {0}")] Insert(String), #[error("search failed: {0}")] Search(String), }