Trait barter_data::subscriber::mapper::SubscriptionMapper
source · pub trait SubscriptionMapper {
fn map<Exchange, Kind>(
subscriptions: &[Subscription<Exchange, Kind>]
) -> SubscriptionMeta
where
Exchange: Connector,
Kind: SubKind,
Subscription<Exchange, Kind>: Identifier<Exchange::Channel> + Identifier<Exchange::Market>;
}Expand description
Defines how to map a collection of Barter Subscriptions into exchange specific
SubscriptionMeta, containing subscription payloads that are sent to the exchange.