Spaces:
Sleeping
Sleeping
| use thiserror::Error; | |
| pub enum GeneratorError { | |
| ImageGenerationFailed(String), | |
| DepthGenerationFailed(String), | |
| ApiError(String), | |
| ConfigError(String), | |
| IoError( std::io::Error), | |
| RequestError( reqwest::Error), | |
| JsonError( serde_json::Error), | |
| } | |
| pub type Result<T> = std::result::Result<T, GeneratorError>; | |