pub struct DiscussionManager { /* private fields */ }Expand description
Discussion Manager
Manages GitHub Discussions for collaborative problem-solving
Implementations§
Source§impl DiscussionManager
impl DiscussionManager
Sourcepub fn new(
token: impl Into<String>,
owner: impl Into<String>,
repo: impl Into<String>,
) -> Self
pub fn new( token: impl Into<String>, owner: impl Into<String>, repo: impl Into<String>, ) -> Self
Create a new DiscussionManager
Sourcepub async fn create_discussion(
&self,
title: &str,
body: &str,
category: &str,
) -> Result<DiscussionCreationResult, GitHubError>
pub async fn create_discussion( &self, title: &str, body: &str, category: &str, ) -> Result<DiscussionCreationResult, GitHubError>
Sourcepub async fn post_response(
&self,
discussion_number: u32,
content: &str,
) -> Result<DiscussionResponse, GitHubError>
pub async fn post_response( &self, discussion_number: u32, content: &str, ) -> Result<DiscussionResponse, GitHubError>
Sourcepub async fn extract_insights(
&self,
discussion_number: u32,
) -> Result<Vec<DiscussionInsight>, GitHubError>
pub async fn extract_insights( &self, discussion_number: u32, ) -> Result<Vec<DiscussionInsight>, GitHubError>
Sourcepub async fn generate_summary(
&self,
discussion_number: u32,
title: &str,
) -> Result<DiscussionSummary, GitHubError>
pub async fn generate_summary( &self, discussion_number: u32, title: &str, ) -> Result<DiscussionSummary, GitHubError>
Sourcepub async fn monitor_status(
&self,
discussion_number: u32,
) -> Result<DiscussionStatusUpdate, GitHubError>
pub async fn monitor_status( &self, discussion_number: u32, ) -> Result<DiscussionStatusUpdate, GitHubError>
Auto Trait Implementations§
impl Freeze for DiscussionManager
impl RefUnwindSafe for DiscussionManager
impl Send for DiscussionManager
impl Sync for DiscussionManager
impl Unpin for DiscussionManager
impl UnwindSafe for DiscussionManager
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