pub trait FlattenFace: Sized {
// Required methods
fn flat_fields(registry: &mut Registry) -> IndexMap<String, MetaInputValue>;
fn flat_read<F>(
object: &IndexMap<Name, Value>,
) -> Result<Self, InputValueError<F>>
where F: InputType;
fn flat_values(&self) -> IndexMap<Name, Value>;
}async-graphql only.Expand description
The DELEGATION TRAIT a nullable column’s wire face is written over — the seam a downstream
filter joins Nullable<F> through, since neither side can write the impl itself — and the
SHORTHAND LAW’s own reading, which every filter face in every crate answers by asking it.
SlotFace rides here beside them: it is the WIRE half of the composed mode’s slot seam, and
the emptiness half — FilterSlot and its three kind markers — is above, where a build with no
binding still has it.
FlattenFace is the same mode’s other field kind — the component a #[ingraph(flatten)] field
SPLICES into its host — and it is here for NullableFace’s own reason: it is a reading OF that
row, so a face that satisfies one satisfies both and neither is written by hand.
The DELEGATION TRAIT a nullable column’s wire face is written over — the seam a downstream
filter joins Nullable<F> through, since neither side can write the impl itself — and the
SHORTHAND LAW’s own reading, which every filter face in every crate answers by asking it.
SlotFace rides here beside them: it is the WIRE half of the composed mode’s slot seam, and
the emptiness half — FilterSlot and its three kind markers — is above, where a build with no
binding still has it.
FlattenFace is the same mode’s other field kind — the component a #[ingraph(flatten)] field
SPLICES into its host — and it is here for NullableFace’s own reason: it is a reading OF that
row, so a face that satisfies one satisfies both and neither is written by hand.
The DELEGATION TRAIT a nullable column’s wire face is written over — the seam a downstream
filter joins Nullable<F> through, since neither side can write the impl itself — and the
SHORTHAND LAW’s own reading, which every filter face in every crate answers by asking it.
SlotFace rides here beside them: it is the WIRE half of the composed mode’s slot seam, and
the emptiness half — FilterSlot and its three kind markers — is above, where a build with no
binding still has it.
FlattenFace is the same mode’s other field kind — the component a #[ingraph(flatten)] field
SPLICES into its host — and it is here for NullableFace’s own reason: it is a reading OF that
row, so a face that satisfies one satisfies both and neither is written by hand.
A component face a composed filter may SPLICE into its own, through
#[ingraph(flatten)] on the field that holds it.
Blanket over NullableFace, so the row is never written by hand — what a declarer supplies is
the face, and this is the reading of it the splice spends.
Required Methods§
Sourcefn flat_fields(registry: &mut Registry) -> IndexMap<String, MetaInputValue>
fn flat_fields(registry: &mut Registry) -> IndexMap<String, MetaInputValue>
The fields this component contributes to its host’s registration.
Sourcefn flat_read<F>(
object: &IndexMap<Name, Value>,
) -> Result<Self, InputValueError<F>>where
F: InputType,
fn flat_read<F>(
object: &IndexMap<Name, Value>,
) -> Result<Self, InputValueError<F>>where
F: InputType,
The component, read from the HOST’s whole parsed object.
F is the owner — the composed filter being parsed — because an InputValueError carries the
type it is about, so the component’s refusal has to be re-pointed at the face a client was
writing. SlotFace::read’s own shape, one field kind over.
§Errors
Whatever the component refuses the object with, PROPAGATED.
Sourcefn flat_values(&self) -> IndexMap<Name, Value>
fn flat_values(&self) -> IndexMap<Name, Value>
The rendered slots this component contributes to its host’s render, in the order it publishes them.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<C: NullableFace> FlattenFace for C
do_not_recommend, and it is the SENTENCE above that it protects. Unmarked, a field that is not
a face reports the nested NullableFace obligation first and the note here second, so a reader
meets a trait they never wrote before the paragraph that says what to do — and the impl list
rustc prints beside it is over every filter kind compiled in, which makes a pinned diagnostic
depend on the feature set it was blessed under. Marked, the refusal is the root bound and its own
note. The pair in comparison::sql::collection carries the attribute for the same reason.