pub struct SchemaMappingCandidate {
pub spec: MappingSpec,
pub unmapped: Vec<UnmappedColumn>,
pub guesses: Vec<String>,
}Expand description
The outcome of MappingSpec::from_arrow_schema — a candidate mapping plus
the honest accounting of what the generator guessed and what it could not map.
Honest by construction: unmapped + every field the spec references cover
every input column. A reviewer reads guesses to see what to check and
unmapped to see what to add by hand; nothing was silently dropped.
Fields§
§spec: MappingSpecThe generated candidate mapping — emit it with MappingSpec::to_ron.
unmapped: Vec<UnmappedColumn>Columns the generator could not map to a scalar graph property (nested / complex Arrow types). Surfaced for a human, never dropped.
guesses: Vec<String>Every role the generator GUESSED (the id column, each FK edge) — the review checklist.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaMappingCandidate
impl Clone for SchemaMappingCandidate
Auto Trait Implementations§
impl Freeze for SchemaMappingCandidate
impl RefUnwindSafe for SchemaMappingCandidate
impl Send for SchemaMappingCandidate
impl Sync for SchemaMappingCandidate
impl Unpin for SchemaMappingCandidate
impl UnsafeUnpin for SchemaMappingCandidate
impl UnwindSafe for SchemaMappingCandidate
Blanket Implementations§
impl<T> Allocation 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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