pub struct CountryPage {
pub resource_type_link: Option<Url>,
pub total_size: usize,
pub start: usize,
pub next_collection_link: Option<Url>,
pub prev_collection_link: Option<Url>,
pub entries: Vec<CountryFull>,
pub entry_links: Option<Url>,
}Expand description
Representation of the country-page resource
Fields§
§resource_type_link: Option<Url>§total_size: usize§start: usize§next_collection_link: Option<Url>§prev_collection_link: Option<Url>§entries: Vec<CountryFull>§entry_links: Option<Url>Implementations§
Source§impl CountryPage
impl CountryPage
pub fn next<'a>( &'a self, client: &'a dyn Client, ) -> Result<Option<PagedCollection<'a, CountryPage>>, Error>
pub fn prev<'a>( &'a self, client: &'a dyn Client, ) -> Result<Option<PagedCollection<'a, CountryPage>>, Error>
Sourcepub fn entry_links(&self) -> Option<Country>
pub fn entry_links(&self) -> Option<Country>
Get the entry_links value.
Sourcepub fn set_entry_links(&mut self, value: Option<Country>)
pub fn set_entry_links(&mut self, value: Option<Country>)
Set the entry_links value.
Trait Implementations§
Source§impl Clone for CountryPage
impl Clone for CountryPage
Source§fn clone(&self) -> CountryPage
fn clone(&self) -> CountryPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CountryPage
impl Debug for CountryPage
Source§impl<'de> Deserialize<'de> for CountryPage
impl<'de> Deserialize<'de> for CountryPage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Page for CountryPage
impl Page for CountryPage
Source§type Item = CountryFull
type Item = CountryFull
The type of item in the page.
Source§fn next<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
fn next<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
Return the next page, if any.
Source§fn prev<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
fn prev<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
Return the previous page, if any.
Source§fn total_size(&self) -> Option<usize>
fn total_size(&self) -> Option<usize>
Return the total number of entries in the page collection
Source§fn entries(&self) -> Vec<CountryFull>
fn entries(&self) -> Vec<CountryFull>
Get the entries on this page.
Source§impl PartialEq for CountryPage
impl PartialEq for CountryPage
Source§fn eq(&self, other: &CountryPage) -> bool
fn eq(&self, other: &CountryPage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CountryPage
impl Serialize for CountryPage
impl StructuralPartialEq for CountryPage
Auto Trait Implementations§
impl Freeze for CountryPage
impl RefUnwindSafe for CountryPage
impl Send for CountryPage
impl Sync for CountryPage
impl Unpin for CountryPage
impl UnsafeUnpin for CountryPage
impl UnwindSafe for CountryPage
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