Skip to content

Comments

refactor: add PagerMeta field to PageResponse (#1683)#1685

Open
GoCoder7 wants to merge 2 commits intoloco-rs:masterfrom
GoCoder7:feature/pagination-improvements
Open

refactor: add PagerMeta field to PageResponse (#1683)#1685
GoCoder7 wants to merge 2 commits intoloco-rs:masterfrom
GoCoder7:feature/pagination-improvements

Conversation

@GoCoder7
Copy link
Contributor

@GoCoder7 GoCoder7 commented Nov 6, 2025

hi

i have added PagerMeta field to PageResponse struct as i mentiond at issue #1683

thanks!

@kaplanelad kaplanelad linked an issue Dec 21, 2025 that may be closed by this pull request
s.parse().map_err(serde::de::Error::custom)
}

use crate::controller::views::pagination::PagerMeta;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using controller views inside the model can break the separation between business logic and view responses.
I think introducing a dedicated struct and implementing Into<PagerMeta> for the relevant types would be a clean solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest to add PagerMetatype field to PageResponse struct

2 participants