pub struct OrderColumn {
pub variant: Ident,
pub name: String,
pub identity: String,
pub note: Option<String>,
pub gate: TokenStream,
}Expand description
One column, as the ORDER-BY unit reads it.
Fields§
§variant: IdentThe variant this column is ordered by — the member in upper camel, which is what makes the variant rename-proof.
name: StringThe NOUN a doc sentence calls this column, ALREADY SPELLED — see FilterColumn::name.
identity: StringThe SEMANTIC IDENTITY a cursor folds — the member’s own external spelling, which no rename moves.
note: Option<String>A paragraph appended to THIS variant’s doc — UnitHeader::note one layer down, and for its
reason: whether a page over this column is refused before a row is read is the front end’s
answer and not the walk’s.
gate: TokenStreamThe CONDITION the column is declared under, as the attribute to prefix onto every artifact it mints here — empty for a column that wrote none, and for every unit whose front end has no condition seat.
Carried on the ROW rather than looked up, because a unit is shared: the record family knows a
field’s #[cfg] and the interface and standalone families have no such word, so the fact
arrives with the column exactly as its filter and its noun do. See
Condition.
Implementations§
Source§impl OrderColumn
impl OrderColumn
Sourcepub fn of(member: &Ident, name: String) -> Self
pub fn of(member: &Ident, name: String) -> Self
One row built from a member and the noun a sentence calls its column — the two derivations written once, so a variant and an identity cannot come to disagree about which column they name.
Sourcepub fn with_note(self, note: String) -> Self
pub fn with_note(self, note: String) -> Self
The same row, carrying the paragraph this column’s own variant adds.
Sourcepub fn with_gate(self, gate: TokenStream) -> Self
pub fn with_gate(self, gate: TokenStream) -> Self
The same row, carrying the CONDITION its column is declared under.