pub struct Stock {
pub symbol: String,
pub config: Config,
}Fields§
§symbol: String§config: ConfigImplementations§
Source§impl Stock
impl Stock
pub async fn bars(self) -> Result<BarResponse, Box<dyn Error>>
pub async fn last_trade(self) -> Result<StockLastTradeResponse, Box<dyn Error>>
pub async fn last_quote(self) -> Result<StockLastQuoteResponse, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stock
impl RefUnwindSafe for Stock
impl Send for Stock
impl Sync for Stock
impl Unpin for Stock
impl UnsafeUnpin for Stock
impl UnwindSafe for Stock
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