pub struct SoftwareStatesPage {
pub page_index: u32,
pub total_pages: u32,
}Expand description
Pagination metadata for a SoftwareStatesPayload message.
All payloads carry a page field. For single-page delivery use
{ page_index: 0, total_pages: 1 }. Multi-page delivery uses
page_index 0…N-1; the last page satisfies page_index + 1 == total_pages.
Fields§
§page_index: u32Zero-based index of this page.
total_pages: u32Total number of pages in this delivery batch.
Implementations§
Trait Implementations§
Source§impl Clone for SoftwareStatesPage
impl Clone for SoftwareStatesPage
Source§fn clone(&self) -> SoftwareStatesPage
fn clone(&self) -> SoftwareStatesPage
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 SoftwareStatesPage
impl Debug for SoftwareStatesPage
Source§impl<'de> Deserialize<'de> for SoftwareStatesPage
impl<'de> Deserialize<'de> for SoftwareStatesPage
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
impl Eq for SoftwareStatesPage
Source§impl PartialEq for SoftwareStatesPage
impl PartialEq for SoftwareStatesPage
Source§fn eq(&self, other: &SoftwareStatesPage) -> bool
fn eq(&self, other: &SoftwareStatesPage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SoftwareStatesPage
impl Serialize for SoftwareStatesPage
impl StructuralPartialEq for SoftwareStatesPage
Auto Trait Implementations§
impl Freeze for SoftwareStatesPage
impl RefUnwindSafe for SoftwareStatesPage
impl Send for SoftwareStatesPage
impl Sync for SoftwareStatesPage
impl Unpin for SoftwareStatesPage
impl UnsafeUnpin for SoftwareStatesPage
impl UnwindSafe for SoftwareStatesPage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.