You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: prices.rs
    path of file: ./repos/tickrs/src/task
    
    the code of the file until where you have to start completion: use async_std::sync::Arc;
use futures::future::BoxFuture;

use super::*;
use crate::api::model::ChartMeta;
use crate::common::{chart_data_to_prices, Price, TimeFrame};

/// Returns an array of prices, depending on the TimeFrame chosen
pub struct Prices {
    symbol: String,
    time_frame: TimeFrame,
}

impl Prices {
    pub fn new(symbol: String, time_frame: TimeFrame) -> Prices {
        Prices { symbol, time_frame }
    }
}

impl AsyncTask for Prices {
    type Inp
    
    fn task<'a>(input: Arc<Self::Input>) -> BoxFuture<'a, Option<Self::Response>> {
        Box::pin(async move {
            let symbol = &input.0;
            let time_frame = input.1;

            let interval = time_frame.api_interval();

            let include_pre_post = time_frame == TimeFrame::Day1;

            if let Ok(response) = crate::CLIENT
                .get_chart_data(symbol, interval, time_frame.as_range(), include_pre_post)
                .await
            {
                Some((
                    time_frame,
                    response.meta.clone(),
                    chart_data_to_prices(response),
                ))
            } else {
                None
            }
        })
    }