Subscription
struct Subscription
Subscription
Fields
Candlesticks
Candlesticks
Candlesticks
Methods
new
pub fn new(inner: Subscription): Subscription
[src]
fn new(inner: _Subscription): Subscription {
let candlesticks: [Period] = [];
for (let _candlestick in inner.candlesticks) {
let period = _candlestick as Period;
candlesticks.push(period!);
}
return Subscription {
symbol: inner.symbol,
sub_types: inner.sub_types,
candlesticks,
};
}
new
pub fn new(inner: Subscription): Subscription
[src]
fn new(inner: _Subscription): Subscription {
let candlesticks: [Period] = [];
for (let _candlestick in inner.candlesticks) {
let period = _candlestick as Period;
candlesticks.push(period!);
}
return Subscription {
symbol: inner.symbol,
sub_types: inner.sub_types,
candlesticks,
};
}