pub struct Page {
pub index: usize,
pub name: String,
pub posts: Vec<Rc<Post>>,
}
Expand description
blog page
index page or tag page
Fields§
§index: usize
page index, start from 1
name: String
page index name
posts: Vec<Rc<Post>>
page posts array
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl !Send for Page
impl !Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
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