pub struct SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>where
RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
CT: Send + Sync + Clone,
RIT: Send + Sync + Clone,
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,{
pub request: RQ,
pub last_response: Option<RS>,
pub last_cursor: Option<CT>,
/* private fields */
}Fields§
§request: RQ§last_response: Option<RS>§last_cursor: Option<CT>Implementations§
source§impl<RQ, RS, CT, RIT, SCHC> SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>where
RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
CT: Send + Sync + Clone,
RIT: Send + Sync + Clone,
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,
impl<RQ, RS, CT, RIT, SCHC> SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>where
RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone,
CT: Send + Sync + Clone,
RIT: Send + Sync + Clone,
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static,
sourcepub fn new(request: &RQ) -> Self
pub fn new(request: &RQ) -> Self
Examples found in repository?
src/scroller.rs (line 68)
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
fn scroller<'a, 'b>(
&'a self,
) -> Box<
dyn SlackApiResponseScroller<
SCHC,
ResponseType = Self::ResponseType,
CursorType = Self::CursorType,
ResponseItemType = Self::ResponseItemType,
>
+ 'b
+ Send
+ Sync,
>
where
Self: Send + Clone + Sync + 'b,
Self::ResponseType: Send
+ Clone
+ Sync
+ SlackApiScrollableResponse<
CursorType = Self::CursorType,
ResponseItemType = Self::ResponseItemType,
> + 'b,
Self::CursorType: Send + Clone + Sync + 'b,
Self::ResponseItemType: Send + Clone + Sync + 'b,
{
Box::new(SlackApiResponseScrollerState::new(self))
}Trait Implementations§
source§impl<RQ, RS, CT, RIT, SCHC> Clone for SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>where
RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone + Clone,
RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone + Clone,
CT: Send + Sync + Clone + Clone,
RIT: Send + Sync + Clone + Clone,
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static + Clone,
impl<RQ, RS, CT, RIT, SCHC> Clone for SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>where
RQ: SlackApiScrollableRequest<SCHC, ResponseType = RS, CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone + Clone,
RS: SlackApiScrollableResponse<CursorType = CT, ResponseItemType = RIT> + Send + Sync + Clone + Clone,
CT: Send + Sync + Clone + Clone,
RIT: Send + Sync + Clone + Clone,
SCHC: SlackClientHttpConnector + Send + Sync + Clone + 'static + Clone,
source§fn clone(&self) -> SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>
fn clone(&self) -> SlackApiResponseScrollerState<RQ, RS, CT, RIT, SCHC>
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 more