Struct mcaptcha::api::v1::notifications::get::NotificationResp
source · pub struct NotificationResp {
pub name: String,
pub heading: String,
pub message: String,
pub received: i64,
pub id: i32,
}
Fields§
§name: String
§heading: String
§message: String
§received: i64
§id: i32
Implementations§
source§impl NotificationResp
impl NotificationResp
pub fn from_notifications(n: Vec<Notification>) -> Vec<Self>
Trait Implementations§
source§impl Clone for NotificationResp
impl Clone for NotificationResp
source§fn clone(&self) -> NotificationResp
fn clone(&self) -> NotificationResp
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 Default for NotificationResp
impl Default for NotificationResp
source§fn default() -> NotificationResp
fn default() -> NotificationResp
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NotificationResp
impl<'de> Deserialize<'de> for NotificationResp
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 From<Notification> for NotificationResp
impl From<Notification> for NotificationResp
source§fn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
source§impl PartialEq for NotificationResp
impl PartialEq for NotificationResp
source§fn eq(&self, other: &NotificationResp) -> bool
fn eq(&self, other: &NotificationResp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NotificationResp
impl Serialize for NotificationResp
impl StructuralPartialEq for NotificationResp
Auto Trait Implementations§
impl RefUnwindSafe for NotificationResp
impl Send for NotificationResp
impl Sync for NotificationResp
impl Unpin for NotificationResp
impl UnwindSafe for NotificationResp
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