pub struct OrderFilterParams {
pub limit: Option<u32>,
pub offset: Option<u32>,
pub after: Option<String>,
pub customer_id: Option<String>,
pub status: Option<String>,
pub payment_status: Option<String>,
pub fulfillment_status: Option<String>,
pub from_date: Option<String>,
pub to_date: Option<String>,
}Expand description
Query parameters for GET /api/v1/orders with filtering.
Fields§
§limit: Option<u32>Maximum number of results to return (default: 50).
offset: Option<u32>Number of results to skip (default: 0). Ignored when after cursor is set.
after: Option<String>Cursor for keyset pagination (opaque token from next_cursor).
customer_id: Option<String>Filter by customer ID (UUID).
status: Option<String>Filter by order status (pending, confirmed, shipped, delivered, cancelled).
payment_status: Option<String>Filter by payment status (pending, paid, partially_refunded, refunded).
fulfillment_status: Option<String>Filter by fulfillment status (unfulfilled, partial, fulfilled).
from_date: Option<String>Orders created on or after this date (RFC 3339, e.g. 2024-01-15T00:00:00Z).
to_date: Option<String>Orders created on or before this date (RFC 3339, e.g. 2024-12-31T23:59:59Z).
Implementations§
Source§impl OrderFilterParams
impl OrderFilterParams
Sourcepub fn resolved_limit(&self) -> u32
pub fn resolved_limit(&self) -> u32
Resolved limit with bounds checking.
Sourcepub fn resolved_offset(&self) -> u32
pub fn resolved_offset(&self) -> u32
Resolved offset.
Trait Implementations§
Source§impl Clone for OrderFilterParams
impl Clone for OrderFilterParams
Source§fn clone(&self) -> OrderFilterParams
fn clone(&self) -> OrderFilterParams
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 OrderFilterParams
impl Debug for OrderFilterParams
Source§impl Default for OrderFilterParams
impl Default for OrderFilterParams
Source§fn default() -> OrderFilterParams
fn default() -> OrderFilterParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderFilterParams
impl<'de> Deserialize<'de> for OrderFilterParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoParams for OrderFilterParams
impl IntoParams for OrderFilterParams
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for OrderFilterParams
impl RefUnwindSafe for OrderFilterParams
impl Send for OrderFilterParams
impl Sync for OrderFilterParams
impl Unpin for OrderFilterParams
impl UnsafeUnpin for OrderFilterParams
impl UnwindSafe for OrderFilterParams
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Available on crate features
compression-br or compression-deflate or compression-gzip or compression-zstd only.Compresses response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using gRPC headers. Read more
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Available on crate feature
follow-redirect only.Source§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Available on crate feature
request-id only.Add request id header and extension. Read more
Source§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Available on crate feature
request-id only.Add request id header and extension, using
x-request-id as the header name. Read moreSource§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
Available on crate feature
request-id only.Propgate request ids from requests to responses. Read more
Source§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
Available on crate feature
request-id only.Propgate request ids from requests to responses, using
x-request-id as the header name. Read more