Struct bailamos::db::notifications::Notification [−][src]
Implementations
impl Notification
[src]
pub const fn new(
id: Option<Id>,
date_created: Option<u64>,
user_id: Option<Id>,
title: Option<String>,
content: Option<String>,
data: Option<Vec<u8>>,
read: bool
) -> Self
[src]
id: Option<Id>,
date_created: Option<u64>,
user_id: Option<Id>,
title: Option<String>,
content: Option<String>,
data: Option<Vec<u8>>,
read: bool
) -> Self
pub fn id(&self) -> Option<Id>
[src]
pub fn date_created(&self) -> Option<u64>
[src]
pub fn user_id(&self) -> Option<Id>
[src]
pub fn title(&self) -> Option<&str>
[src]
Title
pub fn content(&self) -> Option<&str>
[src]
pub fn data(&self) -> Option<&[u8]>
[src]
pub fn is_read(&self) -> bool
[src]
Trait Implementations
impl Debug for Notification
[src]
impl TryFrom<Value> for Notification
[src]
Auto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,