Struct launchpadlib::v1_0::ArchivePage
source · pub struct ArchivePage {
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<ArchiveFull>,
pub entry_links: Option<Url>,
}
Expand description
Representation of the archive-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<ArchiveFull>
§entry_links: Option<Url>
Implementations§
source§impl ArchivePage
impl ArchivePage
pub fn next<'a>( &'a self, client: &'a dyn Client ) -> Result<Option<PagedCollection<'a, ArchivePage>>, Error>
pub fn prev<'a>( &'a self, client: &'a dyn Client ) -> Result<Option<PagedCollection<'a, ArchivePage>>, Error>
pub fn entry_links(&self) -> Option<Archive>
pub fn set_entry_links(&mut self, value: Option<Archive>)
Trait Implementations§
source§impl Clone for ArchivePage
impl Clone for ArchivePage
source§fn clone(&self) -> ArchivePage
fn clone(&self) -> ArchivePage
Returns a copy of the value. Read more
1.0.0 · 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 ArchivePage
impl Debug for ArchivePage
source§impl<'de> Deserialize<'de> for ArchivePage
impl<'de> Deserialize<'de> for ArchivePage
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 ArchivePage
impl Page for ArchivePage
type Item = ArchiveFull
fn next<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
fn prev<'a>(&'a self, client: &'a dyn Client) -> Result<Option<Self>, Error>
fn start(&self) -> usize
fn total_size(&self) -> Option<usize>
fn entries(&self) -> Vec<ArchiveFull>
source§impl PartialEq for ArchivePage
impl PartialEq for ArchivePage
source§fn eq(&self, other: &ArchivePage) -> bool
fn eq(&self, other: &ArchivePage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArchivePage
impl Serialize for ArchivePage
impl StructuralPartialEq for ArchivePage
Auto Trait Implementations§
impl RefUnwindSafe for ArchivePage
impl Send for ArchivePage
impl Sync for ArchivePage
impl Unpin for ArchivePage
impl UnwindSafe for ArchivePage
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