pub struct QueryLastCandles {
pub query: QueryCandles,
pub last: usize,
}Expand description
Query last n candles in range.
Return a candle stream that produce the last last candles backward.
Fields§
§query: QueryCandlesQuery.
last: usizeLast.
Implementations§
Source§impl QueryLastCandles
impl QueryLastCandles
Sourcepub fn new<R>(inst: &str, period: Period, range: R, last: usize) -> Selfwhere
R: RangeBounds<OffsetDateTime>,
pub fn new<R>(inst: &str, period: Period, range: R, last: usize) -> Selfwhere
R: RangeBounds<OffsetDateTime>,
Create a new query.
Sourcepub fn query(&self) -> &QueryCandles
pub fn query(&self) -> &QueryCandles
Get query.
Trait Implementations§
Source§impl Clone for QueryLastCandles
impl Clone for QueryLastCandles
Source§fn clone(&self) -> QueryLastCandles
fn clone(&self) -> QueryLastCandles
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryLastCandles
impl Debug for QueryLastCandles
Source§impl Display for QueryLastCandles
impl Display for QueryLastCandles
Source§impl Request for QueryLastCandles
impl Request for QueryLastCandles
Source§type Response = CandleStream
type Response = CandleStream
Response type.
Auto Trait Implementations§
impl Freeze for QueryLastCandles
impl RefUnwindSafe for QueryLastCandles
impl Send for QueryLastCandles
impl Sync for QueryLastCandles
impl Unpin for QueryLastCandles
impl UnwindSafe for QueryLastCandles
Blanket Implementations§
Source§impl<T, R, E> Adaptor<R> for T
impl<T, R, E> Adaptor<R> for T
Source§fn from_request(req: R) -> Result<T, ExchangeError>
fn from_request(req: R) -> Result<T, ExchangeError>
Convert from request.
Source§fn into_response(
resp: <T as Request>::Response,
) -> Result<<R as Request>::Response, ExchangeError>
fn into_response( resp: <T as Request>::Response, ) -> Result<<R as Request>::Response, ExchangeError>
Convert into response.
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