pub struct SerializableComment {
pub id: u64,
pub target_type: String,
pub repo_key: String,
pub number: u32,
pub author: String,
pub body: String,
pub created_at: u64,
pub updated_at: u64,
}Expand description
Serializable version of a comment.
Fields§
§id: u64§target_type: String§repo_key: String§number: u32§body: String§created_at: u64§updated_at: u64Implementations§
Source§impl SerializableComment
impl SerializableComment
Sourcepub fn into_comment(self) -> Result<Comment>
pub fn into_comment(self) -> Result<Comment>
Convert back to a Comment.
Trait Implementations§
Source§impl Clone for SerializableComment
impl Clone for SerializableComment
Source§fn clone(&self) -> SerializableComment
fn clone(&self) -> SerializableComment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SerializableComment
impl Debug for SerializableComment
Source§impl<'de> Deserialize<'de> for SerializableComment
impl<'de> Deserialize<'de> for SerializableComment
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 From<Comment> for SerializableComment
impl From<Comment> for SerializableComment
Auto Trait Implementations§
impl Freeze for SerializableComment
impl RefUnwindSafe for SerializableComment
impl Send for SerializableComment
impl Sync for SerializableComment
impl Unpin for SerializableComment
impl UnsafeUnpin for SerializableComment
impl UnwindSafe for SerializableComment
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