pt 1.0.3

A client for polygon.io, a financial data platform for stocks, forex and crypto.
Documentation
#[macro_use]
extern crate serde_derive;

extern crate chrono;
extern crate hyper;
extern crate serde;
extern crate serde_json;
extern crate futures;
extern crate url;
extern crate bigdecimal;

use std::fmt;
use chrono::{NaiveDateTime, DateTime, FixedOffset, Utc, SecondsFormat};

pub mod apis;
pub mod models;
pub mod date_serializer;
pub mod datetime_serializer;


pub(crate) trait OutlinePrint<'a>: fmt::Display {
    fn outline_print(&'a self) -> String {
        format!("{}", self)
    }
}

impl<'a> OutlinePrint<'a> for &'a str {
    fn outline_print(&'a self) -> String {
        format!("{}", self)
    }
}

impl<'a> OutlinePrint<'a> for i64 {
    fn outline_print(&'a self) -> String {
        format!("{:?}", self)
    }
}

impl<'a> OutlinePrint<'a> for f32 {
    fn outline_print(&'a self) -> String {
        format!("{:?}", self)
    }
}

impl<'a> OutlinePrint<'a> for bool {
    fn outline_print(&'a self) -> String {
        format!("{:?}", self)
    }
}

impl<'a> OutlinePrint<'a> for chrono::DateTime<chrono::Utc> {
    fn outline_print(&'a self) -> String {
        format!("{}", self.to_rfc3339_opts(SecondsFormat::Secs, true))
    }
}