pub struct ReviewedThreadWire {
pub thread: ReviewThread,
pub resolution: Option<ThreadResolutionWire>,
}Expand description
One review thread as a record carries it: the stored thread, and where its anchor sits in the content the record ships beside it.
The landing is resolved here because only the server can resolve it. A client draws the bounded content it is sent and has no working tree to re-scan; the server’s own resolver is the one answer to whether an anchor still lands, so the record carries that answer rather than a second implementation deriving one a language away.
A thread written inside a commit lands too, when the content carries it. Its own commit’s view draws it at its recorded line without any of this; the landing is what lets the all-changes view draw it beside the same code in the branch’s numbering - earned by content and neighbours, never by the commit-numbered line, which addresses unrelated code here.
resolution is None when this read has no landing to report: a
thread whose branch layer the scan could not read, or one
numbered against another base.
Fields§
§thread: ReviewThread§resolution: Option<ThreadResolutionWire>Where the anchor sits in the content this answer carries, or None
when the read has no lines to place against - a document whose bytes
are not text.
Trait Implementations§
Source§impl Debug for ReviewedThreadWire
impl Debug for ReviewedThreadWire
Source§impl<'de> Deserialize<'de> for ReviewedThreadWire
impl<'de> Deserialize<'de> for ReviewedThreadWire
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>,
Auto Trait Implementations§
impl Freeze for ReviewedThreadWire
impl RefUnwindSafe for ReviewedThreadWire
impl Send for ReviewedThreadWire
impl Sync for ReviewedThreadWire
impl Unpin for ReviewedThreadWire
impl UnsafeUnpin for ReviewedThreadWire
impl UnwindSafe for ReviewedThreadWire
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more