pub struct DiscussionComment {
pub types: Vec<DiscussionCommentType>,
}
Expand description
Configuration for discussion comment events
Fields§
§types: Vec<DiscussionCommentType>
Filter on specific discussion comment event types
Implementations§
Source§impl DiscussionComment
impl DiscussionComment
Sourcepub fn types(self, value: Vec<DiscussionCommentType>) -> Self
pub fn types(self, value: Vec<DiscussionCommentType>) -> Self
Sets the types
field of this struct.
Source§impl DiscussionComment
impl DiscussionComment
Sourcepub fn add_type(self, type_: DiscussionCommentType) -> Self
pub fn add_type(self, type_: DiscussionCommentType) -> Self
Adds a discussion comment event type to filter on
Trait Implementations§
Source§impl Clone for DiscussionComment
impl Clone for DiscussionComment
Source§fn clone(&self) -> DiscussionComment
fn clone(&self) -> DiscussionComment
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 DiscussionComment
impl Debug for DiscussionComment
Source§impl Default for DiscussionComment
impl Default for DiscussionComment
Source§fn default() -> DiscussionComment
fn default() -> DiscussionComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscussionComment
impl<'de> Deserialize<'de> for DiscussionComment
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
Auto Trait Implementations§
impl Freeze for DiscussionComment
impl RefUnwindSafe for DiscussionComment
impl Send for DiscussionComment
impl Sync for DiscussionComment
impl Unpin for DiscussionComment
impl UnwindSafe for DiscussionComment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)