Enum rp1::SortDirection[][src]

pub enum SortDirection {
    Asc,
    Desc,
}
Expand description

Specifies in which direction a sorting operation should occur.

See the docs for SortSpec for a detailed description of the query syntax.

Variants

Asc

Sort the field in ascending order.

Desc

Sort the field in descending order.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Compare self to key and return true if they are equal.

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

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.