pub struct RemoteMappingDiagnostic {
pub relation_id: String,
pub field: String,
pub tool: Tool,
pub message: String,
}Expand description
The record emitted when a remote tracker cannot hold a piece of local data —
a relation (FR-005, C-005, data-model.md §6), a parent reference, a health
value, a project association (WP08, mission first-class-projects-01M3BYBW),
or an epic reference (WP08, mission epics-work-items-01M3BYW4).
The four fields are fixed by the data model. field is the important one: it
is what makes the diagnostic actionable rather than a shrug, and
data-model.md §6 requires it for exactly that reason — “so the message can
name it”.
One type for all of them because the vocabulary matters more than the noun: a
reader of tix export output learns one shape (“tool: field cannot represent
this local data (subject) — reason”) and does not have to recognise which kind
of local data each line is about. The subject in relation_id is whatever
the diagnostic is about — a relationship id, an issue->parent pair, a health
scope, an issue->project pair, or an issue->epic pair.
Fields§
§relation_id: StringThe local item the diagnostic is about: a relationship id, an
issue->parent pair, a health scope, or an issue->project pair.
field: StringThe specific unsupported remote field or relation name.
tool: ToolWhich adapter produced the diagnostic.
message: StringHuman-readable text, safe for CLI output, the TUI, and lint.
Trait Implementations§
Source§impl Clone for RemoteMappingDiagnostic
impl Clone for RemoteMappingDiagnostic
Source§impl Debug for RemoteMappingDiagnostic
impl Debug for RemoteMappingDiagnostic
Source§impl Display for RemoteMappingDiagnostic
impl Display for RemoteMappingDiagnostic
impl Eq for RemoteMappingDiagnostic
Source§impl PartialEq for RemoteMappingDiagnostic
impl PartialEq for RemoteMappingDiagnostic
impl StructuralPartialEq for RemoteMappingDiagnostic
Auto Trait Implementations§
impl Freeze for RemoteMappingDiagnostic
impl RefUnwindSafe for RemoteMappingDiagnostic
impl Send for RemoteMappingDiagnostic
impl Sync for RemoteMappingDiagnostic
impl Unpin for RemoteMappingDiagnostic
impl UnsafeUnpin for RemoteMappingDiagnostic
impl UnwindSafe for RemoteMappingDiagnostic
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more