strava-wrapper 0.0.2

[WIP] A Rust wrapper for the Strava API
Documentation
use crate::models::Comment;
use crate::query::{
    get_with_query_and_path, AfterCursor, Endpoint, ErrorWrapper, PageSize, PathQuery, Query,
    Sendable, ID,
};
use async_trait::async_trait;
use std::collections::HashMap;
use strava_wrapper_macros::{AfterCursor, Endpoint, PageSize, PathQuery, Query, ID};

#[derive(Debug, Clone, Endpoint, Query, PathQuery, ID, PageSize, AfterCursor)]
pub struct ListActivityComments {
    url: String,
    token: String,
    path: String,
    query: Vec<(String, String)>,
    path_params: Vec<(String, String)>,
}

#[async_trait]
impl Sendable<Vec<Comment>> for ListActivityComments {
    async fn send(mut self) -> Result<Vec<Comment>, ErrorWrapper> {
        get_with_query_and_path(self.clone(), &self.token).await
    }
}