pub struct BulkForumScope<E>where
E: BulkExecutor,{ /* private fields */ }
Implementations§
Source§impl<E> BulkForumScope<E>where
E: BulkExecutor,
impl<E> BulkForumScope<E>where
E: BulkExecutor,
pub fn new(executor: E) -> Self
Sourcepub fn posts_for_thread_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (ForumThreadId, Result<ForumPostsResponse, E::Error>)>where
I: IntoIterator<Item = ForumThreadId>,
S: IsComplete,
B: Fn(ForumPostsForThreadIdRequestBuilder<Empty>) -> ForumPostsForThreadIdRequestBuilder<S>,
pub fn posts_for_thread_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (ForumThreadId, Result<ForumPostsResponse, E::Error>)>where
I: IntoIterator<Item = ForumThreadId>,
S: IsComplete,
B: Fn(ForumPostsForThreadIdRequestBuilder<Empty>) -> ForumPostsForThreadIdRequestBuilder<S>,
Get specific forum thread posts
§Description
Requires public access key.
Returns 20 posts per page for a specific thread.
Sourcepub fn thread_for_thread_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (ForumThreadId, Result<ForumThreadResponse, E::Error>)>where
I: IntoIterator<Item = ForumThreadId>,
S: IsComplete,
B: Fn(ForumThreadForThreadIdRequestBuilder<Empty>) -> ForumThreadForThreadIdRequestBuilder<S>,
pub fn thread_for_thread_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (ForumThreadId, Result<ForumThreadResponse, E::Error>)>where
I: IntoIterator<Item = ForumThreadId>,
S: IsComplete,
B: Fn(ForumThreadForThreadIdRequestBuilder<Empty>) -> ForumThreadForThreadIdRequestBuilder<S>,
Get specific thread details
§Description
Requires public access key.
Contains details of a thread including topic content and poll (if any).
Sourcepub fn threads_for_category_ids<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (CategoryIds, Result<ForumThreadsResponse, E::Error>)>where
I: IntoIterator<Item = CategoryIds>,
S: IsComplete,
B: Fn(ForumThreadsForCategoryIdsRequestBuilder<Empty>) -> ForumThreadsForCategoryIdsRequestBuilder<S>,
pub fn threads_for_category_ids<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (CategoryIds, Result<ForumThreadsResponse, E::Error>)>where
I: IntoIterator<Item = CategoryIds>,
S: IsComplete,
B: Fn(ForumThreadsForCategoryIdsRequestBuilder<Empty>) -> ForumThreadsForCategoryIdsRequestBuilder<S>,
Get threads for specific public forum category or categories
§Description
Requires public access key.
Auto Trait Implementations§
impl<E> Freeze for BulkForumScope<E>where
E: Freeze,
impl<E> RefUnwindSafe for BulkForumScope<E>where
E: RefUnwindSafe,
impl<E> Send for BulkForumScope<E>where
E: Send,
impl<E> Sync for BulkForumScope<E>where
E: Sync,
impl<E> Unpin for BulkForumScope<E>where
E: Unpin,
impl<E> UnwindSafe for BulkForumScope<E>where
E: UnwindSafe,
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