bug fixed

This commit is contained in:
병준 박 2022-08-08 09:47:44 +00:00
parent 0c51ea8b76
commit 325e153101

View File

@ -43,8 +43,8 @@ pub struct Pagination {
pub page_size: Option<u32>, pub page_size: Option<u32>,
} }
impl From<Pagination> for bpr::protobuf::pagination::Pagination { impl From<&Pagination> for bpr::protobuf::pagination::Pagination {
fn from(d: Pagination) -> Self { fn from(d: &Pagination) -> Self {
bpr::protobuf::pagination::Pagination { bpr::protobuf::pagination::Pagination {
page: d.page, page: d.page,
page_size: d.page_size, page_size: d.page_size,
@ -52,8 +52,8 @@ impl From<Pagination> for bpr::protobuf::pagination::Pagination {
} }
} }
impl From<bpr::protobuf::pagination::Pagination> for Pagination { impl From<&bpr::protobuf::pagination::Pagination> for Pagination {
fn from(d: bpr::protobuf::pagination::Pagination) -> Self { fn from(d: &bpr::protobuf::pagination::Pagination) -> Self {
Pagination { Pagination {
page: d.page, page: d.page,
page_size: d.page_size, page_size: d.page_size,