pub struct BookRequest {
pub instruments: Vec<String>,
pub strategy: Option<String>,
pub max_concurrent_positions: Option<u32>,
pub max_per_sector: Option<u32>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Fields§
§instruments: Vec<String>§strategy: Option<String>§max_concurrent_positions: Option<u32>§max_per_sector: Option<u32>Implementations§
Source§impl BookRequest
impl BookRequest
Sourcepub fn strategy(&self) -> &str
pub fn strategy(&self) -> &str
Returns the value of strategy, or the default value if strategy is unset.
Sourcepub fn max_concurrent_positions(&self) -> u32
pub fn max_concurrent_positions(&self) -> u32
Returns the value of max_concurrent_positions, or the default value if max_concurrent_positions is unset.
Sourcepub fn max_per_sector(&self) -> u32
pub fn max_per_sector(&self) -> u32
Returns the value of max_per_sector, or the default value if max_per_sector is unset.
Trait Implementations§
Source§impl Clone for BookRequest
impl Clone for BookRequest
Source§impl Debug for BookRequest
impl Debug for BookRequest
Source§impl Default for BookRequest
impl Default for BookRequest
Source§impl<'de> Deserialize<'de> for BookRequest
impl<'de> Deserialize<'de> for BookRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for BookRequest
Source§impl Hash for BookRequest
impl Hash for BookRequest
Source§impl Message for BookRequest
impl Message for BookRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.