pub struct Discussion {Show 22 fields
pub active_lock_reason: Option<String>,
pub answer_chosen_at: Option<String>,
pub answer_chosen_by: Option<Box<User>>,
pub answer_html_url: Option<String>,
pub author_association: AuthorAssociation,
pub body: String,
pub category: Box<DiscussionCategory>,
pub comments: i32,
pub created_at: String,
pub html_url: String,
pub id: i32,
pub locked: bool,
pub node_id: String,
pub number: i32,
pub reactions: Option<Box<Reactions>>,
pub repository_url: String,
pub state: State,
pub state_reason: Option<StateReason>,
pub timeline_url: Option<String>,
pub title: String,
pub updated_at: String,
pub user: Option<Box<User>>,
}
Expand description
Discussion : A Discussion in a repository.
Fields§
§active_lock_reason: Option<String>
§answer_chosen_at: Option<String>
§answer_chosen_by: Option<Box<User>>
§answer_html_url: Option<String>
How the author is associated with the repository.
body: String
§category: Box<DiscussionCategory>
§comments: i32
§created_at: String
§html_url: String
§id: i32
§locked: bool
§node_id: String
§number: i32
§reactions: Option<Box<Reactions>>
§repository_url: String
§state: State
The current state of the discussion. converting
means that the discussion is being converted from an issue. transferring
means that the discussion is being transferred from another repository.
state_reason: Option<StateReason>
The reason for the current state
timeline_url: Option<String>
§title: String
§updated_at: String
§user: Option<Box<User>>
Implementations§
Source§impl Discussion
impl Discussion
Sourcepub fn new(
active_lock_reason: Option<String>,
answer_chosen_at: Option<String>,
answer_chosen_by: Option<User>,
answer_html_url: Option<String>,
author_association: AuthorAssociation,
body: String,
category: DiscussionCategory,
comments: i32,
created_at: String,
html_url: String,
id: i32,
locked: bool,
node_id: String,
number: i32,
repository_url: String,
state: State,
state_reason: Option<StateReason>,
title: String,
updated_at: String,
user: Option<User>,
) -> Discussion
pub fn new( active_lock_reason: Option<String>, answer_chosen_at: Option<String>, answer_chosen_by: Option<User>, answer_html_url: Option<String>, author_association: AuthorAssociation, body: String, category: DiscussionCategory, comments: i32, created_at: String, html_url: String, id: i32, locked: bool, node_id: String, number: i32, repository_url: String, state: State, state_reason: Option<StateReason>, title: String, updated_at: String, user: Option<User>, ) -> Discussion
A Discussion in a repository.
Trait Implementations§
Source§impl Clone for Discussion
impl Clone for Discussion
Source§fn clone(&self) -> Discussion
fn clone(&self) -> Discussion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Discussion
impl Debug for Discussion
Source§impl Default for Discussion
impl Default for Discussion
Source§fn default() -> Discussion
fn default() -> Discussion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Discussion
impl<'de> Deserialize<'de> for Discussion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Discussion
impl PartialEq for Discussion
Source§impl Serialize for Discussion
impl Serialize for Discussion
impl StructuralPartialEq for Discussion
Auto Trait Implementations§
impl Freeze for Discussion
impl RefUnwindSafe for Discussion
impl Send for Discussion
impl Sync for Discussion
impl Unpin for Discussion
impl UnwindSafe for Discussion
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