pub struct GistComment {
pub id: i32,
pub node_id: String,
pub url: String,
pub body: String,
pub user: Option<Box<NullableSimpleUser>>,
pub created_at: String,
pub updated_at: String,
pub author_association: AuthorAssociation,
}
Expand description
GistComment : A comment made to a gist.
Fields§
§id: i32
§node_id: String
§url: String
§body: String
The comment text.
user: Option<Box<NullableSimpleUser>>
§created_at: String
§updated_at: String
Implementations§
Source§impl GistComment
impl GistComment
Sourcepub fn new(
id: i32,
node_id: String,
url: String,
body: String,
user: Option<NullableSimpleUser>,
created_at: String,
updated_at: String,
author_association: AuthorAssociation,
) -> GistComment
pub fn new( id: i32, node_id: String, url: String, body: String, user: Option<NullableSimpleUser>, created_at: String, updated_at: String, author_association: AuthorAssociation, ) -> GistComment
A comment made to a gist.
Trait Implementations§
Source§impl Clone for GistComment
impl Clone for GistComment
Source§fn clone(&self) -> GistComment
fn clone(&self) -> GistComment
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 GistComment
impl Debug for GistComment
Source§impl Default for GistComment
impl Default for GistComment
Source§fn default() -> GistComment
fn default() -> GistComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GistComment
impl<'de> Deserialize<'de> for GistComment
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 GistComment
impl PartialEq for GistComment
Source§impl Serialize for GistComment
impl Serialize for GistComment
impl StructuralPartialEq for GistComment
Auto Trait Implementations§
impl Freeze for GistComment
impl RefUnwindSafe for GistComment
impl Send for GistComment
impl Sync for GistComment
impl Unpin for GistComment
impl UnwindSafe for GistComment
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