Module ops

Source
Available on crate feature filter only.
Expand description

Standard operators from Django for use with filtering.

These have short names, matching their Django names, that can be used in the derive macro for Filterable. There are the following operators:

Structs§

Contains
The OperatorClass that can instantiate ContainsImpl.
ContainsImpl
Match when the string representation of the value contains the target.
EndsWith
The OperatorClass that can instantiate EndsWithImpl.
EndsWithImpl
Match when the string representation of the value ends with the target.
Exact
The OperatorClass that can instantiate ExactImpl.
ExactImpl
Match when the value is equal to the target.
Greater
The OperatorClass that can instantiate GreaterImpl.
GreaterEq
The OperatorClass that can instantiate GreaterEqImpl.
GreaterEqImpl
Match when the value is greater than or equal to the target.
GreaterImpl
Match when value is greater than the target.
IContains
The OperatorClass that can instantiate IContainsImpl.
IContainsImpl
Match when the string representation of the value contains the target case insensitively.
IExact
The OperatorClass that can instantiate IExactImpl.
IExactImpl
Match when the string representation of the value is exactly the target, case insensitively.
In
The OperatorClass that can instantiate InImpl.
InImpl
Match when the value is equal to one of the targets.
IsNull
The OperatorClass that can instantiate IsNullImpl.
IsNullImpl
Match when there is no value, because a containing Option is None.
Less
The OperatorClass that can instantiate LessImpl.
LessEq
The OperatorClass that can instantiate LessEqImpl.
LessEqImpl
Match when the value is less than or equal to the target.
LessImpl
Match when value is less than the target.
StartsWith
The OperatorClass that can instantiate StartsWithImpl.
StartsWithImpl
Match when the string representation of the value starts with the target.

Traits§

Scalar
A value that is directly Operable.