pub struct OrderListParams {
pub profile: Option<String>,
pub account_id: Option<String>,
pub status: Option<String>,
pub identifier: Option<String>,
pub identifier_contains: Option<String>,
pub cert_serial: Option<String>,
pub limit: Option<i64>,
pub offset: Option<i64>,
}Expand description
The window fields are inline, not #[serde(flatten)] — see the note on
super::accounts::AccountListParams.
Fields§
§profile: Option<String>§account_id: Option<String>§status: Option<String>§identifier: Option<String>Exact identifier match (case-insensitive).
identifier_contains: Option<String>Substring identifier match (case-insensitive). Mutually exclusive with
identifier — OrderListParams::check_identifier_filters rejects both.
cert_serial: Option<String>Exact issued-certificate serial match (hex, no separators).
limit: Option<i64>§offset: Option<i64>Implementations§
Source§impl OrderListParams
impl OrderListParams
Sourcepub fn parsed_status(&self) -> Result<Option<OrderStatus>, UnknownStatus>
pub fn parsed_status(&self) -> Result<Option<OrderStatus>, UnknownStatus>
The status= filter, parsed.
Refused by name rather than passed to SQL: an unknown status matches no
rows, which a caller cannot tell from “nothing is in that state”. Both
front ends call this, so /api/orders?status=typo and
/ui/orders?status=typo give the same answer.
Sourcepub fn check_identifier_filters(&self) -> Result<(), &'static str>
pub fn check_identifier_filters(&self) -> Result<(), &'static str>
identifier and identifierContains are two spellings of one filter and
asking for both at once is a caller mistake, not a narrower query. Both
front ends call this so /api and /ui refuse it the same way; the
message is returned bare so each can wrap it in its own error shape.
Trait Implementations§
Source§impl Debug for OrderListParams
impl Debug for OrderListParams
Source§impl Default for OrderListParams
impl Default for OrderListParams
Source§impl<'de> Deserialize<'de> for OrderListParams
impl<'de> Deserialize<'de> for OrderListParams
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>,
Auto Trait Implementations§
impl Freeze for OrderListParams
impl RefUnwindSafe for OrderListParams
impl Send for OrderListParams
impl Sync for OrderListParams
impl Unpin for OrderListParams
impl UnsafeUnpin for OrderListParams
impl UnwindSafe for OrderListParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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> 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> ⓘ
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> ⓘ
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