pub struct PageLinks(/* private fields */);Expand description
The Link header built by Page::links, as a response part (nothing when there is no other page).
§Examples
use axum::response::IntoResponse;
use ocre::Page;
let only_page = Page::new(50, 0).unwrap().links("/api/posts", 3);
let response = (only_page, "[]").into_response();
assert!(response.headers().get("link").is_none());Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PageLinks
impl RefUnwindSafe for PageLinks
impl Send for PageLinks
impl Sync for PageLinks
impl Unpin for PageLinks
impl UnsafeUnpin for PageLinks
impl UnwindSafe for PageLinks
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