Struct github_rest::model::discussions::Discussion
source · pub struct Discussion {Show 19 fields
pub lock_reason: Option<LockReason>,
pub repository_url: String,
pub answer_html_url: Option<String>,
pub answer_chosen_at: Option<String>,
pub answer_chosen_by: Option<SimpleUser>,
pub html_url: String,
pub id: usize,
pub node_id: String,
pub number: usize,
pub title: String,
pub user: SimpleUser,
pub state: String,
pub locked: bool,
pub comments: usize,
pub created_at: String,
pub updated_at: String,
pub author_association: Association,
pub active_lock_reason: Option<Value>,
pub body: String,
}
Fields§
§lock_reason: Option<LockReason>
§repository_url: String
§answer_html_url: Option<String>
§answer_chosen_at: Option<String>
§answer_chosen_by: Option<SimpleUser>
§html_url: String
§id: usize
§node_id: String
§number: usize
§title: String
§user: SimpleUser
§state: String
§locked: bool
§comments: usize
§created_at: String
§updated_at: String
§active_lock_reason: Option<Value>
§body: String
Trait Implementations§
source§impl Clone for Discussion
impl Clone for Discussion
source§fn clone(&self) -> Discussion
fn clone(&self) -> Discussion
Returns a copy 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<'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<Discussion> for Discussion
impl PartialEq<Discussion> for Discussion
source§fn eq(&self, other: &Discussion) -> bool
fn eq(&self, other: &Discussion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Discussion
impl Serialize for Discussion
impl StructuralPartialEq for Discussion
Auto Trait Implementations§
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