pub struct PageFilters {
pub type: Option<String>,
pub child_of: Option<i64>,
pub descendant_of: Option<i64>,
pub ancestor_of: Option<i64>,
pub translation_of: Option<i64>,
pub locale: Option<String>,
pub tag: Option<String>,
pub id_in: Option<String>,
}Expand description
Per-endpoint filters layered on top of crate::api::query::ListQuery.
Fields§
§type: Option<String>?type=cms_pages.HomePage — handler type_name match.
child_of: Option<i64>?child_of=N — direct children of page N.
descendant_of: Option<i64>?descendant_of=N — every descendant of page N (excluding N).
ancestor_of: Option<i64>?ancestor_of=N — every ancestor of page N (excluding N).
translation_of: Option<i64>?translation_of=N — sibling locale variants of page N.
locale: Option<String>?locale=en — restrict to a specific locale.
tag: Option<String>?tag=release — restrict to pages carrying this tag.
id_in: Option<String>?id_in=3,9,14 — fetch several pages by id in one request.
Without it, hydrating a resolved menu (which returns page_id
per node and nothing else) costs one request per item. Unknown
and non-public ids are simply absent from the result rather than
an error, so a stale client id degrades to a missing row instead
of failing the whole batch. Bounded by ?limit= like any list.
Trait Implementations§
Source§impl Debug for PageFilters
impl Debug for PageFilters
Source§impl Default for PageFilters
impl Default for PageFilters
Source§impl<'de> Deserialize<'de> for PageFilters
impl<'de> Deserialize<'de> for PageFilters
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 PageFilters
impl RefUnwindSafe for PageFilters
impl Send for PageFilters
impl Sync for PageFilters
impl Unpin for PageFilters
impl UnsafeUnpin for PageFilters
impl UnwindSafe for PageFilters
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