pub enum DiscussionResolution {
Open,
ResolvedIntoAnnotation {
annotation_id: String,
},
ResolvedByEdit {
state_id: ChangeId,
},
Dismissed {
reason: String,
},
}Variants§
Open
ResolvedIntoAnnotation
The discussion produced an annotation; the annotation is the durable
artifact going forward. The bidirectional link is on
Discussion::resolved_annotation_id and on the annotation’s
metadata back-pointer.
ResolvedByEdit
A subsequent edit addressed the discussion’s concern. The state ID pinpoints which edit was the answer.
Dismissed
The discussion was dismissed without an annotation or follow-up edit. A non-empty reason is required so future readers know why.
Trait Implementations§
Source§impl Clone for DiscussionResolution
impl Clone for DiscussionResolution
Source§fn clone(&self) -> DiscussionResolution
fn clone(&self) -> DiscussionResolution
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 DiscussionResolution
impl Debug for DiscussionResolution
Source§impl Default for DiscussionResolution
impl Default for DiscussionResolution
Source§fn default() -> DiscussionResolution
fn default() -> DiscussionResolution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscussionResolution
impl<'de> Deserialize<'de> for DiscussionResolution
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 PartialEq for DiscussionResolution
impl PartialEq for DiscussionResolution
Source§fn eq(&self, other: &DiscussionResolution) -> bool
fn eq(&self, other: &DiscussionResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiscussionResolution
impl Serialize for DiscussionResolution
impl Eq for DiscussionResolution
impl StructuralPartialEq for DiscussionResolution
Auto Trait Implementations§
impl Freeze for DiscussionResolution
impl RefUnwindSafe for DiscussionResolution
impl Send for DiscussionResolution
impl Sync for DiscussionResolution
impl Unpin for DiscussionResolution
impl UnsafeUnpin for DiscussionResolution
impl UnwindSafe for DiscussionResolution
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