Struct cobalt_config::Pagination
source · [−]#[non_exhaustive]pub struct Pagination {
pub include: Option<Include>,
pub per_page: Option<i32>,
pub permalink_suffix: Option<KString>,
pub order: Option<SortOrder>,
pub sort_by: Option<Vec<KString>>,
pub date_index: Option<Vec<DateIndex>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.include: Option<Include>
per_page: Option<i32>
permalink_suffix: Option<KString>
order: Option<SortOrder>
sort_by: Option<Vec<KString>>
date_index: Option<Vec<DateIndex>>
Implementations
sourceimpl Pagination
impl Pagination
Trait Implementations
sourceimpl Clone for Pagination
impl Clone for Pagination
sourcefn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Pagination
impl Debug for Pagination
sourceimpl Default for Pagination
impl Default for Pagination
sourcefn default() -> Pagination
fn default() -> Pagination
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Pagination where
Pagination: Default,
impl<'de> Deserialize<'de> for Pagination where
Pagination: Default,
sourcefn 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
sourceimpl PartialEq<Pagination> for Pagination
impl PartialEq<Pagination> for Pagination
sourcefn eq(&self, other: &Pagination) -> bool
fn eq(&self, other: &Pagination) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for Pagination
impl Serialize for Pagination
impl Eq for Pagination
impl StructuralEq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations
impl RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnwindSafe for Pagination
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.