pub struct WirePosition {
pub legs: Vec<WireLeg>,
}Expand description
ONE POSITION of a field’s wire crossing: a leg per database, and the error a fallible one answers with.
§The legs are PER DATABASE, where the wire form is not
A crossing has a row on one side of it, and a row is one database’s. output(sqlite(try_from = "…")) is handed what SQLite stores and answers with the wire form; the Postgres leg beside it is
handed what Postgres stores. What both answer WITH is the one type
GraphqlField::wire names, which is what keeps the schema from varying
with a deployment.
A database with NO leg takes the DEFAULT CHAIN — the column’s own persist crossing composed
with the domain’s wire face — so a declaration writes a leg exactly where the default is not what
it means.
Fields§
§legs: Vec<WireLeg>The declared legs, in the order the declaration wrote them. Never two for one database.
The ERROR a fallible one answers with is not here: it is the RECORD’s, at the cell this
crossing’s own block names — graphql(output(sqlite(error = "…"))) — so every impl of one
crossing at one backend answers alike whatever the fields declared.
Implementations§
Source§impl WirePosition
impl WirePosition
Sourcepub fn leg(&self, kind: DatabaseKind) -> Option<&Conversion>
pub fn leg(&self, kind: DatabaseKind) -> Option<&Conversion>
This position’s leg for kind, or None where the database takes the default chain.