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<NotificationResp> for NotificationResp
impl PartialEq<NotificationResp> 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 ==
.