pub struct ForumScope<'e, E>(/* private fields */)
where
E: Executor;
Implementations§
Source§impl<'e, E> ForumScope<'e, E>where
E: Executor,
impl<'e, E> ForumScope<'e, E>where
E: Executor,
pub fn new(executor: &'e E) -> Self
pub async fn categories<S>(
&self,
builder: impl FnOnce(ForumCategoriesRequestBuilder<Empty>) -> ForumCategoriesRequestBuilder<S>,
) -> Result<ForumCategoriesResponse, E::Error>where
S: IsComplete,
pub async fn posts_for_thread_id<S>(
&self,
thread_id: ForumThreadId,
builder: impl FnOnce(ForumPostsForThreadIdRequestBuilder<Empty>) -> ForumPostsForThreadIdRequestBuilder<S>,
) -> Result<ForumPostsResponse, E::Error>where
S: IsComplete,
pub async fn thread_for_thread_id<S>(
&self,
thread_id: ForumThreadId,
builder: impl FnOnce(ForumThreadForThreadIdRequestBuilder<Empty>) -> ForumThreadForThreadIdRequestBuilder<S>,
) -> Result<ForumThreadResponse, E::Error>where
S: IsComplete,
pub async fn threads<S>(
&self,
builder: impl FnOnce(ForumThreadsRequestBuilder<Empty>) -> ForumThreadsRequestBuilder<S>,
) -> Result<ForumThreadsResponse, E::Error>where
S: IsComplete,
pub async fn threads_for_category_ids<S>(
&self,
category_ids: String,
builder: impl FnOnce(ForumThreadsForCategoryIdsRequestBuilder<Empty>) -> ForumThreadsForCategoryIdsRequestBuilder<S>,
) -> Result<ForumThreadsResponse, E::Error>where
S: IsComplete,
pub async fn lookup<S>(
&self,
builder: impl FnOnce(ForumLookupRequestBuilder<Empty>) -> ForumLookupRequestBuilder<S>,
) -> Result<ForumLookupResponse, E::Error>where
S: IsComplete,
pub async fn timestamp<S>(
&self,
builder: impl FnOnce(ForumTimestampRequestBuilder<Empty>) -> ForumTimestampRequestBuilder<S>,
) -> Result<TimestampResponse, E::Error>where
S: IsComplete,
pub async fn for_selections<S>(
&self,
builder: impl FnOnce(ForumRequestBuilder<Empty>) -> ForumRequestBuilder<S>,
) -> Result<Response, E::Error>where
S: IsComplete,
Auto Trait Implementations§
impl<'e, E> Freeze for ForumScope<'e, E>
impl<'e, E> RefUnwindSafe for ForumScope<'e, E>where
E: RefUnwindSafe,
impl<'e, E> Send for ForumScope<'e, E>where
E: Sync,
impl<'e, E> Sync for ForumScope<'e, E>where
E: Sync,
impl<'e, E> Unpin for ForumScope<'e, E>
impl<'e, E> UnwindSafe for ForumScope<'e, E>where
E: RefUnwindSafe,
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