pub struct Discussion {
pub id: DiscussionId,
pub anchor: SymbolAnchor,
pub opened_against_state: ChangeId,
pub opened_at: i64,
pub thread_ref: Option<String>,
pub turns: Vec<DiscussionTurn>,
pub resolution: DiscussionResolution,
pub body_changed_since_open: bool,
pub orphaned: bool,
pub visibility: VisibilityTier,
pub resolved_annotation_id: Option<String>,
}Fields§
§id: DiscussionId§anchor: SymbolAnchor§opened_against_state: ChangeId§opened_at: i64Unix epoch seconds.
thread_ref: Option<String>§turns: Vec<DiscussionTurn>§resolution: DiscussionResolution§body_changed_since_open: boolSet by anchor-travel when the symbol body has changed since this discussion was opened. Reviewers see a marker; resolution still proceeds normally.
orphaned: boolSet by anchor-travel when the symbol can’t be resolved in the new state (deleted or unreachable rename). The discussion stays open with this marker for a human to triage.
visibility: VisibilityTierInherits from namespace policy unless explicitly overridden.
resolved_annotation_id: Option<String>Bidirectional link populated when DiscussionResolution::ResolvedIntoAnnotation
fires. Lets viewers jump from the discussion to the annotation it
produced (and vice versa, via a back-pointer on the annotation).
Implementations§
Trait Implementations§
Source§impl Clone for Discussion
impl Clone for Discussion
Source§fn clone(&self) -> Discussion
fn clone(&self) -> Discussion
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 Discussion
impl Debug for Discussion
Source§impl<'de> Deserialize<'de> for Discussion
impl<'de> Deserialize<'de> for Discussion
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
impl Eq for Discussion
Source§impl PartialEq for Discussion
impl PartialEq for Discussion
Source§fn eq(&self, other: &Discussion) -> bool
fn eq(&self, other: &Discussion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Discussion
impl Serialize 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 UnsafeUnpin 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