pub struct PageUrl {
pub url: String,
pub page_number: u32,
pub is_current: bool,
}Expand description
分页链接
表示分页导航中的一个具体页面链接及其对应的页码。
Fields§
§url: String页面 URL
page_number: u32页码(从 1 开始)
is_current: bool是否为当前页
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageUrl
impl<'de> Deserialize<'de> for PageUrl
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
Auto Trait Implementations§
impl Freeze for PageUrl
impl RefUnwindSafe for PageUrl
impl Send for PageUrl
impl Sync for PageUrl
impl Unpin for PageUrl
impl UnsafeUnpin for PageUrl
impl UnwindSafe for PageUrl
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