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