pub struct GetMessagesBuilder<'client> { /* private fields */ }Available on crate feature
manage-messages only.Implementations§
Source§impl<'client> GetMessagesBuilder<'client>
impl<'client> GetMessagesBuilder<'client>
pub fn new(client: &'client ClientClient) -> Self
Source§impl<'client> GetMessagesBuilder<'client>
impl<'client> GetMessagesBuilder<'client>
pub fn with_limit(self, limit: usize) -> Self
pub fn with_since(self, since: i64) -> Self
Source§impl<'client> GetMessagesBuilder<'client>
impl<'client> GetMessagesBuilder<'client>
pub async fn send(self) -> Result<PagedMessages>
Trait Implementations§
Source§impl<'client> Debug for GetMessagesBuilder<'client>
impl<'client> Debug for GetMessagesBuilder<'client>
Source§impl<'client> IntoFuture for GetMessagesBuilder<'client>
impl<'client> IntoFuture for GetMessagesBuilder<'client>
Source§type Output = Result<PagedMessages, Error>
type Output = Result<PagedMessages, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GetMessagesBuilder<'client> as IntoFuture>::Output> + Send + 'client>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetMessagesBuilder<'client> as IntoFuture>::Output> + Send + 'client>>
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
Auto Trait Implementations§
impl<'client> Freeze for GetMessagesBuilder<'client>
impl<'client> !RefUnwindSafe for GetMessagesBuilder<'client>
impl<'client> Send for GetMessagesBuilder<'client>
impl<'client> Sync for GetMessagesBuilder<'client>
impl<'client> Unpin for GetMessagesBuilder<'client>
impl<'client> !UnwindSafe for GetMessagesBuilder<'client>
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