pub enum DiscussionCommentEvent {
Created(DiscussionCommentCreated),
Deleted(DiscussionCommentDeleted),
Edited(DiscussionCommentEdited),
}
Expand description
DiscussionCommentEvent
JSON schema
{
"oneOf": [
{
"$ref": "#/definitions/discussion_comment$created"
},
{
"$ref": "#/definitions/discussion_comment$deleted"
},
{
"$ref": "#/definitions/discussion_comment$edited"
}
]
}
Variants§
Created(DiscussionCommentCreated)
Deleted(DiscussionCommentDeleted)
Edited(DiscussionCommentEdited)
Trait Implementations§
Source§impl Clone for DiscussionCommentEvent
impl Clone for DiscussionCommentEvent
Source§fn clone(&self) -> DiscussionCommentEvent
fn clone(&self) -> DiscussionCommentEvent
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 DiscussionCommentEvent
impl Debug for DiscussionCommentEvent
Source§impl<'de> Deserialize<'de> for DiscussionCommentEvent
impl<'de> Deserialize<'de> for DiscussionCommentEvent
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<&DiscussionCommentEvent> for DiscussionCommentEvent
impl From<&DiscussionCommentEvent> for DiscussionCommentEvent
Source§fn from(value: &DiscussionCommentEvent) -> Self
fn from(value: &DiscussionCommentEvent) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCommentCreated> for DiscussionCommentEvent
impl From<DiscussionCommentCreated> for DiscussionCommentEvent
Source§fn from(value: DiscussionCommentCreated) -> Self
fn from(value: DiscussionCommentCreated) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCommentDeleted> for DiscussionCommentEvent
impl From<DiscussionCommentDeleted> for DiscussionCommentEvent
Source§fn from(value: DiscussionCommentDeleted) -> Self
fn from(value: DiscussionCommentDeleted) -> Self
Converts to this type from the input type.
Source§impl From<DiscussionCommentEdited> for DiscussionCommentEvent
impl From<DiscussionCommentEdited> for DiscussionCommentEvent
Source§fn from(value: DiscussionCommentEdited) -> Self
fn from(value: DiscussionCommentEdited) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiscussionCommentEvent
impl RefUnwindSafe for DiscussionCommentEvent
impl Send for DiscussionCommentEvent
impl Sync for DiscussionCommentEvent
impl Unpin for DiscussionCommentEvent
impl UnwindSafe for DiscussionCommentEvent
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