Sync your own workout data from your "Strong" app
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 16 lines 370 B view raw
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 {}