pub struct DefaultParamFilter { /* private fields */ }Expand description
Adds trusted default parameters before strict parsing.
Implementations§
Source§impl DefaultParamFilter
impl DefaultParamFilter
pub fn new( entries: impl IntoIterator<Item = (String, String)>, ) -> DefaultParamFilter
Trait Implementations§
Source§impl Clone for DefaultParamFilter
impl Clone for DefaultParamFilter
Source§fn clone(&self) -> DefaultParamFilter
fn clone(&self) -> DefaultParamFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultParamFilter
impl Debug for DefaultParamFilter
Source§impl Default for DefaultParamFilter
impl Default for DefaultParamFilter
Source§fn default() -> DefaultParamFilter
fn default() -> DefaultParamFilter
Returns the “default value” for a type. Read more
Source§impl RawParamFilter for DefaultParamFilter
impl RawParamFilter for DefaultParamFilter
Source§fn filter(
&self,
entity: &'static EntityMeta,
input: &RawParams,
) -> Result<RawParams, ParamError>
fn filter( &self, entity: &'static EntityMeta, input: &RawParams, ) -> Result<RawParams, ParamError>
Normalize
input while preserving ordered, repeated parameters.Source§fn filter_with_limits(
&self,
_entity: &'static EntityMeta,
input: &RawParams,
limits: &QueryLimits,
) -> Result<RawParams, ParamError>
fn filter_with_limits( &self, _entity: &'static EntityMeta, input: &RawParams, limits: &QueryLimits, ) -> Result<RawParams, ParamError>
Budget-aware entry point. Server code must perform bounded synchronous
work; arbitrary extension code cannot be preempted safely by core.
Source§fn fingerprint(&self) -> u64
fn fingerprint(&self) -> u64
Stable identity used by query policy fingerprints.
Auto Trait Implementations§
impl Freeze for DefaultParamFilter
impl RefUnwindSafe for DefaultParamFilter
impl Send for DefaultParamFilter
impl Sync for DefaultParamFilter
impl Unpin for DefaultParamFilter
impl UnsafeUnpin for DefaultParamFilter
impl UnwindSafe for DefaultParamFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more