pub struct DetailQuery {
pub preview_token: Option<String>,
pub locale: Option<String>,
pub fields: Option<String>,
}Expand description
Query for the page detail endpoint.
Fields§
§preview_token: Option<String>A signed preview token (from the admin mint endpoint). When valid for this page id, the endpoint serves the page even if it isn’t published, so a decoupled frontend can render the draft.
locale: Option<String>?locale=fr — return this locale’s content. Overrides from
cms_translation are applied per field, so anything untranslated
falls back to canonical rather than blanking. An unknown or
inactive code falls back to the tenant default.
Note this is a content selector, unlike the list endpoint’s
?locale=, which is a legacy row filter over the deprecated
locale_variant_of column.
fields: Option<String>?fields=title,seo_title — same sparse selection the list
endpoints accept. It was list-only, so a client fetching one page
had no way to avoid pulling extension, builder and the whole
children array. id and meta are always kept.
Trait Implementations§
Source§impl Default for DetailQuery
impl Default for DetailQuery
Source§impl<'de> Deserialize<'de> for DetailQuery
impl<'de> Deserialize<'de> for DetailQuery
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 DetailQuery
impl RefUnwindSafe for DetailQuery
impl Send for DetailQuery
impl Sync for DetailQuery
impl Unpin for DetailQuery
impl UnsafeUnpin for DetailQuery
impl UnwindSafe for DetailQuery
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