pub struct SeriesKey {
pub exchange: ExchangeId,
pub account_type: AccountType,
pub symbol: String,
pub kind: Kind,
}Expand description
Canonical series identity. Matches the MLC BarSeriesKey shape but is
generalized over data-class via kind.
Fields§
§exchange: ExchangeId§account_type: AccountType§symbol: StringExchange-native raw symbol (already normalized via SymbolNormalizer).
kind: KindImplementations§
Source§impl SeriesKey
impl SeriesKey
pub fn new( exchange: ExchangeId, account_type: AccountType, symbol: impl Into<String>, kind: Kind, ) -> Self
Sourcepub fn account_label(&self) -> &'static str
pub fn account_label(&self) -> &'static str
Filesystem-friendly account label (matches CLI --account spelling).
Sourcepub fn exchange_label(&self) -> String
pub fn exchange_label(&self) -> String
Lower-case exchange label.
Trait Implementations§
impl Eq for SeriesKey
impl StructuralPartialEq for SeriesKey
Auto Trait Implementations§
impl Freeze for SeriesKey
impl RefUnwindSafe for SeriesKey
impl Send for SeriesKey
impl Sync for SeriesKey
impl Unpin for SeriesKey
impl UnsafeUnpin for SeriesKey
impl UnwindSafe for SeriesKey
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