Struct SecdefInfo

Source
pub struct SecdefInfo { /* private fields */ }

Implementations§

Source§

impl SecdefInfo

Source

pub fn new() -> SecdefInfo

Contains some basic info of contract

Source

pub fn set_conid(&mut self, conid: f32)

Source

pub fn with_conid(self, conid: f32) -> SecdefInfo

Source

pub fn conid(&self) -> Option<&f32>

Source

pub fn reset_conid(&mut self)

Source

pub fn set_coupon(&mut self, coupon: String)

Source

pub fn with_coupon(self, coupon: String) -> SecdefInfo

Source

pub fn coupon(&self) -> Option<&String>

Source

pub fn reset_coupon(&mut self)

Source

pub fn set_currency(&mut self, currency: String)

Source

pub fn with_currency(self, currency: String) -> SecdefInfo

Source

pub fn currency(&self) -> Option<&String>

Source

pub fn reset_currency(&mut self)

Source

pub fn set_cusip(&mut self, cusip: String)

Source

pub fn with_cusip(self, cusip: String) -> SecdefInfo

Source

pub fn cusip(&self) -> Option<&String>

Source

pub fn reset_cusip(&mut self)

Source

pub fn set_desc1(&mut self, desc1: String)

Source

pub fn with_desc1(self, desc1: String) -> SecdefInfo

Source

pub fn desc1(&self) -> Option<&String>

Source

pub fn reset_desc1(&mut self)

Source

pub fn set_desc2(&mut self, desc2: String)

Source

pub fn with_desc2(self, desc2: String) -> SecdefInfo

Source

pub fn desc2(&self) -> Option<&String>

Source

pub fn reset_desc2(&mut self)

Source

pub fn set_exchange(&mut self, exchange: String)

Source

pub fn with_exchange(self, exchange: String) -> SecdefInfo

Source

pub fn exchange(&self) -> Option<&String>

Source

pub fn reset_exchange(&mut self)

Source

pub fn set_listing_exchange(&mut self, listing_exchange: String)

Source

pub fn with_listing_exchange(self, listing_exchange: String) -> SecdefInfo

Source

pub fn listing_exchange(&self) -> Option<&String>

Source

pub fn reset_listing_exchange(&mut self)

Source

pub fn set_maturity_date(&mut self, maturity_date: String)

Source

pub fn with_maturity_date(self, maturity_date: String) -> SecdefInfo

Source

pub fn maturity_date(&self) -> Option<&String>

Source

pub fn reset_maturity_date(&mut self)

Source

pub fn set_multiplier(&mut self, multiplier: String)

Source

pub fn with_multiplier(self, multiplier: String) -> SecdefInfo

Source

pub fn multiplier(&self) -> Option<&String>

Source

pub fn reset_multiplier(&mut self)

Source

pub fn set_right(&mut self, right: String)

Source

pub fn with_right(self, right: String) -> SecdefInfo

Source

pub fn right(&self) -> Option<&String>

Source

pub fn reset_right(&mut self)

Source

pub fn set_sec_type(&mut self, sec_type: String)

Source

pub fn with_sec_type(self, sec_type: String) -> SecdefInfo

Source

pub fn sec_type(&self) -> Option<&String>

Source

pub fn reset_sec_type(&mut self)

Source

pub fn set_strike(&mut self, strike: String)

Source

pub fn with_strike(self, strike: String) -> SecdefInfo

Source

pub fn strike(&self) -> Option<&String>

Source

pub fn reset_strike(&mut self)

Source

pub fn set_symbol(&mut self, symbol: String)

Source

pub fn with_symbol(self, symbol: String) -> SecdefInfo

Source

pub fn symbol(&self) -> Option<&String>

Source

pub fn reset_symbol(&mut self)

Source

pub fn set_trading_class(&mut self, trading_class: String)

Source

pub fn with_trading_class(self, trading_class: String) -> SecdefInfo

Source

pub fn trading_class(&self) -> Option<&String>

Source

pub fn reset_trading_class(&mut self)

Source

pub fn set_valid_exchanges(&mut self, valid_exchanges: String)

Source

pub fn with_valid_exchanges(self, valid_exchanges: String) -> SecdefInfo

Source

pub fn valid_exchanges(&self) -> Option<&String>

Source

pub fn reset_valid_exchanges(&mut self)

Trait Implementations§

Source§

impl Debug for SecdefInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SecdefInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SecdefInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,