Struct exc_types::candle::QueryLastCandles
source · 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 copy 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
§type Response = CandleStream
type Response = CandleStream
Response type.
Auto Trait Implementations§
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