pub struct Board {
pub class_code: String,
pub exchange: String,
}Expand description
A trading board: a class code on an exchange.
§Examples
use brokapi_bcs_protocol::models::types::Board;
let b: Board = serde_json::from_str(r#"{"classCode":"TQBR","exchange":"MOEX"}"#)?;
assert_eq!(b.class_code, "TQBR");Fields§
§class_code: StringClass code of the board, for example TQBR.
exchange: StringExchange code, for example MOEX.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Board
impl<'de> Deserialize<'de> for Board
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Board
Auto Trait Implementations§
impl Freeze for Board
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnsafeUnpin for Board
impl UnwindSafe for Board
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more