pub struct GetNotificationsResponse {
pub status: ApiStatus,
pub notifications: Vec<UserNotification>,
}Fields§
§status: ApiStatus§notifications: Vec<UserNotification>Implementations§
Source§impl GetNotificationsResponse
impl GetNotificationsResponse
pub fn new( status: ApiStatus, notifications: Vec<UserNotification>, ) -> GetNotificationsResponse
Trait Implementations§
Source§impl Clone for GetNotificationsResponse
impl Clone for GetNotificationsResponse
Source§fn clone(&self) -> GetNotificationsResponse
fn clone(&self) -> GetNotificationsResponse
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 Debug for GetNotificationsResponse
impl Debug for GetNotificationsResponse
Source§impl Default for GetNotificationsResponse
impl Default for GetNotificationsResponse
Source§fn default() -> GetNotificationsResponse
fn default() -> GetNotificationsResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetNotificationsResponse
impl<'de> Deserialize<'de> for GetNotificationsResponse
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 GetNotificationsResponse
impl PartialEq for GetNotificationsResponse
Source§impl Serialize for GetNotificationsResponse
impl Serialize for GetNotificationsResponse
impl StructuralPartialEq for GetNotificationsResponse
Auto Trait Implementations§
impl Freeze for GetNotificationsResponse
impl RefUnwindSafe for GetNotificationsResponse
impl Send for GetNotificationsResponse
impl Sync for GetNotificationsResponse
impl Unpin for GetNotificationsResponse
impl UnwindSafe for GetNotificationsResponse
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