pub trait PagePolicy: Send + Sync {
// Required method
fn max_page_limit(&self) -> u64;
}Available on crate feature
server only.Expand description
What Page needs from the router’s state.
X-Limit: The maximum number of objects that the server can return.
The header is a promise, so the extractor keeps it: a limit above this never reaches a
handler.
Required Methods§
Sourcefn max_page_limit(&self) -> u64
fn max_page_limit(&self) -> u64
The largest page this server will return.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".