Struct as_symbols::SymbolMetadata
source · pub struct SymbolMetadata {
pub namespace: Option<String>,
pub symbol: String,
pub currency: Option<String>,
pub updater: Option<String>,
pub updater_symbol: Option<String>,
pub ledger_symbol: Option<String>,
pub ib_symbol: Option<String>,
pub remarks: Option<String>,
}
Fields§
§namespace: Option<String>
Exchange
symbol: String
Symbol at the exchange
currency: Option<String>
The currency used to express the symbol’s price.
updater: Option<String>
The name of the price update provider.
updater_symbol: Option<String>
The symbol, as used by the updater.
ledger_symbol: Option<String>
The symbol, as used in the Ledger journal.
ib_symbol: Option<String>
The symbol, as used at Interactive Brokers.
remarks: Option<String>
Remarks
Implementations§
source§impl SymbolMetadata
impl SymbolMetadata
pub fn new() -> Self
sourcepub fn get_symbol(&self) -> String
pub fn get_symbol(&self) -> String
Returns ledger symbol, if exists, or the main symbol.
pub fn symbol_w_namespace(&self) -> String
Trait Implementations§
source§impl Debug for SymbolMetadata
impl Debug for SymbolMetadata
source§impl Default for SymbolMetadata
impl Default for SymbolMetadata
source§fn default() -> SymbolMetadata
fn default() -> SymbolMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SymbolMetadata
impl<'de> Deserialize<'de> for SymbolMetadata
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