pub struct MenuQuery {
pub locale: Option<String>,
pub current: Option<i64>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
Query string shared by both endpoints.
Fields§
§locale: Option<String>?locale=fr — localized labels on the detail endpoint. Items
with no override for this locale keep their canonical label, so a
partly-translated menu degrades per item rather than blanking. An
unknown or inactive code falls back to the tenant default.
Accepted but ignored by the list endpoint, which returns only slugs and names — neither of which is translatable.
current: Option<i64>?current=<page id> — mark the item targeting this page
is_active, and everything above it in_active_trail.
Ignored on the list endpoint, which returns no items.
limit: Option<usize>Paging, so the list honours the same ListEnvelope contract as
every other v2 list. It used to return every menu unpaginated and
omit limit/offset from meta, so a client typed against the
shared envelope broke on this one endpoint alone.
offset: Option<usize>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuQuery
impl<'de> Deserialize<'de> for MenuQuery
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 Forget for MenuQuery
impl Freeze for MenuQuery
impl RefUnwindSafe for MenuQuery
impl Send for MenuQuery
impl Sync for MenuQuery
impl Unpin for MenuQuery
impl UnsafeUnpin for MenuQuery
impl UnwindSafe for MenuQuery
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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