openlimits-coinbase 0.3.0

Coinbase implementation for OpenLimits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::Deserialize;
use serde::Serialize;
use super::ChannelType;

/// This enum represents a channel
#[derive(Serialize, Clone, Deserialize, Debug, PartialEq, Eq, Hash)]
#[serde(untagged)]
pub enum Channel {
    Name(ChannelType),
    WithProduct {
        name: ChannelType,
        product_ids: Vec<String>,
    },
}