Struct cobalt_config::Pagination
source · 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§
§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§
source§impl Pagination
impl Pagination
Trait Implementations§
source§impl Clone for Pagination
impl Clone for Pagination
source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Pagination
impl Debug for Pagination
source§impl Default for Pagination
impl Default for Pagination
source§fn default() -> Pagination
fn default() -> Pagination
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Paginationwhere
Pagination: Default,
impl<'de> Deserialize<'de> for Paginationwhere
Pagination: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Pagination
impl PartialEq for Pagination
source§fn 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 ==
.source§impl Serialize for Pagination
impl Serialize for Pagination
impl Eq 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§
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.