pub struct PaginationText {
pub label: String,
pub previous: String,
pub next: String,
}Expand description
The words pagination names its parts with.
They are English until replaced, so a page in another language passes its own:
use hypersig_ui::PaginationText;
let japanese = PaginationText {
label: "ページ送り".into(),
previous: "前へ".into(),
next: "次へ".into(),
};
assert_ne!(japanese, PaginationText::default());Fields§
§label: StringThe name of the <nav>, “Pagination”.
previous: StringThe link to the page before, “Previous”.
next: StringThe link to the page after, “Next”.
Trait Implementations§
Source§impl Clone for PaginationText
impl Clone for PaginationText
Source§fn clone(&self) -> PaginationText
fn clone(&self) -> PaginationText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaginationText
impl Debug for PaginationText
Source§impl Default for PaginationText
impl Default for PaginationText
impl Eq for PaginationText
Source§impl PartialEq for PaginationText
impl PartialEq for PaginationText
impl StructuralPartialEq for PaginationText
Auto Trait Implementations§
impl Freeze for PaginationText
impl RefUnwindSafe for PaginationText
impl Send for PaginationText
impl Sync for PaginationText
impl Unpin for PaginationText
impl UnsafeUnpin for PaginationText
impl UnwindSafe for PaginationText
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