mlb-api 1.0.3

Endpoints for MLB's public Statcast API.
Documentation
//! General hydrations types for the hydrations system
//! 
//! Everything here is rather internal, not much will be of interest

use std::borrow::Cow;
use std::fmt::Debug;
use serde::de::DeserializeOwned;

#[doc(hidden)]
pub trait Hydrations: 'static + Debug + DeserializeOwned + PartialEq + Clone {
	type RequestData;

	fn hydration_text(data: &Self::RequestData) -> Cow<'static, str>;
}

impl Hydrations for () {
	type RequestData = ();

	fn hydration_text((): &()) -> Cow<'static, str> {
		Cow::Borrowed("")
	}
}