pub enum CommentPolicy {
Anew,
Update,
}
Expand description
An enumeration of possible values that control [FeedBackOptions::thread_comments
].
Variants§
Anew
Each thread comment is posted as a new comment.
This may result in perceivable spam because every new comment may cause notification emails.
Update
Like CommentPolicy::Anew
, but updates a single comment.
Typically, this is the desirable option when posting thread comments.
Trait Implementations§
Source§impl Clone for CommentPolicy
impl Clone for CommentPolicy
Source§fn clone(&self) -> CommentPolicy
fn clone(&self) -> CommentPolicy
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 CommentPolicy
impl Debug for CommentPolicy
Source§impl Default for CommentPolicy
impl Default for CommentPolicy
Source§fn default() -> CommentPolicy
fn default() -> CommentPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommentPolicy
impl PartialEq for CommentPolicy
impl Copy for CommentPolicy
impl Eq for CommentPolicy
impl StructuralPartialEq for CommentPolicy
Auto Trait Implementations§
impl Freeze for CommentPolicy
impl RefUnwindSafe for CommentPolicy
impl Send for CommentPolicy
impl Sync for CommentPolicy
impl Unpin for CommentPolicy
impl UnwindSafe for CommentPolicy
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.