Skip to main content

validate_range

Function validate_range 

Source
pub fn validate_range(range: &Range) -> Result<(), ApiError>
Expand description

Rejects a range the server will not serve, with the reason.

Separate from the handler so the rules can be read - and tested - without a database behind them.