pub struct DiscussionOperations;Expand description
Discussion Operations
Advanced operations for managing discussions
Implementations§
Source§impl DiscussionOperations
impl DiscussionOperations
Sourcepub async fn categorize_discussion(
discussion_number: u32,
title: &str,
body: &str,
) -> Result<CategorizationResult, GitHubError>
pub async fn categorize_discussion( discussion_number: u32, title: &str, body: &str, ) -> Result<CategorizationResult, GitHubError>
Sourcepub async fn track_updates(
discussion_number: u32,
last_comment_count: u32,
) -> Result<TrackingResult, GitHubError>
pub async fn track_updates( discussion_number: u32, last_comment_count: u32, ) -> Result<TrackingResult, GitHubError>
Sourcepub async fn get_thread(
discussion_number: u32,
title: &str,
) -> Result<DiscussionThread, GitHubError>
pub async fn get_thread( discussion_number: u32, title: &str, ) -> Result<DiscussionThread, GitHubError>
Sourcepub async fn mark_resolved(
discussion_number: u32,
answer_comment_id: u64,
) -> Result<(), GitHubError>
pub async fn mark_resolved( discussion_number: u32, answer_comment_id: u64, ) -> Result<(), GitHubError>
Sourcepub async fn get_categories() -> Result<Vec<DiscussionCategory>, GitHubError>
pub async fn get_categories() -> Result<Vec<DiscussionCategory>, GitHubError>
Auto Trait Implementations§
impl Freeze for DiscussionOperations
impl RefUnwindSafe for DiscussionOperations
impl Send for DiscussionOperations
impl Sync for DiscussionOperations
impl Unpin for DiscussionOperations
impl UnwindSafe for DiscussionOperations
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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