Struct rp1::SortSpec[][src]

pub struct SortSpec<T> {
    pub field: T,
    pub direction: SortDirection,
}
Expand description

Sort specification, contains a field and direction.

A field enum is generated based on the fields in the struct.

Fields

field: Tdirection: SortDirection

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Parse a value of T from a form value field. Read more

Parse a value of T from a form data field. Read more

Returns a default value, if any exists, to be used during lenient parsing when the form field is missing. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

The form guard’s parsing context.

Initializes and returns the parsing context for Self.

Processes the value field field.

Processes the data field field.

Finalizes parsing. Returns the parsed value when successful or collection of Errors otherwise. Read more

Processes the external form or field error _error. Read more

Returns a default value, if any, to use when a value is desired and parsing fails. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.