pub struct NotificationPaginatedResponse {
pub data: Vec<Notification>,
pub next: Option<Option<String>>,
}Fields§
§data: Vec<Notification>The data of the current page
next: Option<Option<String>>The ID of the next page
Implementations§
Source§impl NotificationPaginatedResponse
impl NotificationPaginatedResponse
pub fn new(data: Vec<Notification>) -> NotificationPaginatedResponse
Trait Implementations§
Source§impl Clone for NotificationPaginatedResponse
impl Clone for NotificationPaginatedResponse
Source§fn clone(&self) -> NotificationPaginatedResponse
fn clone(&self) -> NotificationPaginatedResponse
Returns a duplicate 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 Default for NotificationPaginatedResponse
impl Default for NotificationPaginatedResponse
Source§fn default() -> NotificationPaginatedResponse
fn default() -> NotificationPaginatedResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationPaginatedResponse
impl<'de> Deserialize<'de> for NotificationPaginatedResponse
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 PartialEq for NotificationPaginatedResponse
impl PartialEq for NotificationPaginatedResponse
Source§fn eq(&self, other: &NotificationPaginatedResponse) -> bool
fn eq(&self, other: &NotificationPaginatedResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationPaginatedResponse
Auto Trait Implementations§
impl Freeze for NotificationPaginatedResponse
impl RefUnwindSafe for NotificationPaginatedResponse
impl Send for NotificationPaginatedResponse
impl Sync for NotificationPaginatedResponse
impl Unpin for NotificationPaginatedResponse
impl UnwindSafe for NotificationPaginatedResponse
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