Sync your own workout data from your "Strong" app
1use serde::Deserialize;
2use std::fmt;
3
4#[derive(Debug, Deserialize)]
5pub struct ApiErrorResponse {
6 pub code: String,
7 pub description: String,
8}
9
10impl fmt::Display for ApiErrorResponse {
11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12 write!(f, "{}: {}", self.code, self.description)
13 }
14}
15
16impl std::error::Error for ApiErrorResponse {}