use serde::Deserialize;
#[derive(Debug)]
pub enum DockerError {
BadParameters(ErrorMessage),
ServerError(ErrorMessage),
NotFound(ErrorMessage),
NotRunning(ErrorMessage),
AlreadyStarted(ErrorMessage),
ContainerExists(ErrorMessage),
Busy(ErrorMessage),
UnknownStatus,
ClosedConnection,
}
#[derive(Deserialize, Debug, Clone)]
pub struct ErrorMessage {
pub message: String,
}