pub struct Discussion {
pub types: Vec<DiscussionType>,
}
Expand description
Configuration for discussion events
Fields§
§types: Vec<DiscussionType>
Filter on specific discussion event types
Implementations§
Source§impl Discussion
impl Discussion
Sourcepub fn types(self, value: Vec<DiscussionType>) -> Discussion
pub fn types(self, value: Vec<DiscussionType>) -> Discussion
Sets the types
field of this struct.
Source§impl Discussion
impl Discussion
Sourcepub fn add_type(self, type_: DiscussionType) -> Discussion
pub fn add_type(self, type_: DiscussionType) -> Discussion
Adds a discussion event type to filter on
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 Default for Discussion
impl Default for Discussion
Source§fn default() -> Discussion
fn default() -> Discussion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Discussion
impl<'de> Deserialize<'de> for Discussion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Discussion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Discussion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Discussion
impl PartialEq for Discussion
Source§impl Serialize for Discussion
impl Serialize for Discussion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Discussion
impl StructuralPartialEq for Discussion
Auto Trait Implementations§
impl Freeze for Discussion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.