pub struct GetChannelMessagesConfigured<'a> { /* private fields */ }
Expand description
This struct is returned when one of after
, around
, or before
is specified in
GetChannelMessages
.
Implementations§
source§impl<'a> GetChannelMessagesConfigured<'a>
impl<'a> GetChannelMessagesConfigured<'a>
sourcepub fn limit(self, limit: u16) -> Self
pub fn limit(self, limit: u16) -> Self
Set the maximum number of messages to retrieve.
The minimum is 1 and the maximum is 100.
§Errors
Returns an error of type GetChannelMessages
error type if the amount
is less than 1 or greater than 100.
Trait Implementations§
source§impl IntoFuture for GetChannelMessagesConfigured<'_>
impl IntoFuture for GetChannelMessagesConfigured<'_>
source§type Output = Result<Response<ListBody<Message>>, Error>
type Output = Result<Response<ListBody<Message>>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<ListBody<Message>>
type IntoFuture = ResponseFuture<ListBody<Message>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
source§impl TryIntoRequest for GetChannelMessagesConfigured<'_>
impl TryIntoRequest for GetChannelMessagesConfigured<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetChannelMessagesConfigured<'a>
impl<'a> !RefUnwindSafe for GetChannelMessagesConfigured<'a>
impl<'a> Send for GetChannelMessagesConfigured<'a>
impl<'a> Sync for GetChannelMessagesConfigured<'a>
impl<'a> Unpin for GetChannelMessagesConfigured<'a>
impl<'a> !UnwindSafe for GetChannelMessagesConfigured<'a>
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