Type Alias backend::model::dto::PageMapDto

source ·
pub type PageMapDto = Page<MapDto>;

Aliased Type§

struct PageMapDto {
    pub results: Vec<MapDto, Global>,
    pub page: i32,
    pub per_page: i32,
    pub total_pages: i32,
}

Fields§

§results: Vec<MapDto, Global>

Resulting records.

§page: i32

Current page number.

§per_page: i32

Results per page.

§total_pages: i32

Number of pages in total.

Implementations§

source§

impl<T> Page<T>

source

pub fn from_entity<U>(value: Page<U>) -> Selfwhere T: From<U>,

Used to convert from a page of entities to a page of dto.

Trait Implementations§

source§

impl<T: Debug> Debug for Page<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, T> Deserialize<'de> for Page<T>where T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T: PartialEq> PartialEq<Page<T>> for Page<T>

source§

fn eq(&self, other: &Page<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> Serialize for Page<T>where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'__s, T> ToSchema<'__s> for Page<T>

source§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
source§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the ToSchema::schema. Read more
source§

impl<T: Eq> Eq for Page<T>

source§

impl<T> StructuralEq for Page<T>

source§

impl<T> StructuralPartialEq for Page<T>