Struct dnsimple::dnsimple::Pagination[][src]

pub struct Pagination {
    pub current_page: u64,
    pub per_page: u64,
    pub total_entries: u64,
    pub total_pages: u64,
}
Expand description

Any API endpoint that returns a list of items requires pagination. By default we will return 30 records from any listing endpoint. If an API endpoint returns a list of items, then it will include a pagination object that contains pagination information.

Fields

current_page: u64

The page currently returned (default: 1)

per_page: u64

The number of entries returned per page (default: 30)

total_entries: u64

The total number of entries available in the entire collection

total_pages: u64

The total number of pages available given the current per_page value

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.