pub struct Ticker(/* private fields */);Implementations§
Source§impl Ticker
impl Ticker
pub fn from_parts(exchange: &str, symbol: &str) -> Self
Sourcepub fn from_exchange_symbol(exchange: &str, symbol: &str) -> Self
pub fn from_exchange_symbol(exchange: &str, symbol: &str) -> Self
Heuristic convenience constructor that normalizes common exchange-specific symbol shapes.
pub fn from_exchange_symbol_normalized(exchange: &str, symbol: &str) -> Self
pub fn from_exchange_symbol_with<N>(
exchange: &str,
symbol: &str,
normalizer: &N,
) -> Selfwhere
N: SymbolNormalizer + ?Sized,
pub const fn from_static(raw: &'static str) -> Self
pub fn new(raw: impl Into<Cow<'static, str>>) -> Self
pub fn as_str(&self) -> &str
pub fn split(&self) -> Option<(&str, &str)>
pub fn exchange(&self) -> Option<&str>
pub fn symbol(&self) -> Option<&str>
Trait Implementations§
Source§impl From<InstrumentRef> for Ticker
impl From<InstrumentRef> for Ticker
Source§fn from(value: InstrumentRef) -> Self
fn from(value: InstrumentRef) -> Self
Converts to this type from the input type.
Source§impl Ord for Ticker
impl Ord for Ticker
Source§impl PartialOrd for Ticker
impl PartialOrd for Ticker
impl Eq for Ticker
impl StructuralPartialEq for Ticker
Auto Trait Implementations§
impl Freeze for Ticker
impl RefUnwindSafe for Ticker
impl Send for Ticker
impl Sync for Ticker
impl Unpin for Ticker
impl UnsafeUnpin for Ticker
impl UnwindSafe for Ticker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.