pub struct InlineResultIter { /* private fields */ }Expand description
Paginated iterator over results from a bot’s inline mode.
Created by Client::inline_query.
Implementations§
Source§impl InlineResultIter
impl InlineResultIter
Sourcepub fn peer(self, peer: InputPeer) -> Self
pub fn peer(self, peer: InputPeer) -> Self
Override the context peer (some bots return different results per chat type).
Sourcepub async fn next(&mut self) -> Result<Option<InlineResult>, InvocationError>
pub async fn next(&mut self) -> Result<Option<InlineResult>, InvocationError>
Fetch the next result. Returns None when all results are consumed.
Auto Trait Implementations§
impl Freeze for InlineResultIter
impl !RefUnwindSafe for InlineResultIter
impl Send for InlineResultIter
impl Sync for InlineResultIter
impl Unpin for InlineResultIter
impl UnsafeUnpin for InlineResultIter
impl !UnwindSafe for InlineResultIter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more