PushBrokers
struct PushBrokers
Brokers message
Fields
Ask brokers
Ask brokers
Ask brokers
Bid brokers
Bid brokers
Bid brokers
Methods
new
pub fn new(inner: PushBrokers): PushBrokers
[src]
fn new(inner: _PushBrokers): PushBrokers {
let ask_brokers: [Brokers] = [];
for (let _item in inner.ask_brokers) {
ask_brokers.push(Brokers.new(_item));
}
let bid_brokers: [Brokers] = [];
for (let _item in inner.bid_brokers) {
bid_brokers.push(Brokers.new(_item));
}
return PushBrokers { ask_brokers, bid_brokers };
}
new
pub fn new(inner: PushBrokers): PushBrokers
[src]
fn new(inner: _PushBrokers): PushBrokers {
let ask_brokers: [Brokers] = [];
for (let _item in inner.ask_brokers) {
ask_brokers.push(Brokers.new(_item));
}
let bid_brokers: [Brokers] = [];
for (let _item in inner.bid_brokers) {
bid_brokers.push(Brokers.new(_item));
}
return PushBrokers { ask_brokers, bid_brokers };
}