pub struct RichNotification {
pub activity: Model,
pub seen: bool,
}Fields§
§activity: Model§seen: boolTrait Implementations§
Source§impl FromQueryResult for RichNotification
impl FromQueryResult for RichNotification
Source§fn from_query_result(res: &QueryResult, _pre: &str) -> Result<Self, DbErr>
fn from_query_result(res: &QueryResult, _pre: &str) -> Result<Self, DbErr>
Instantiate a Model from a QueryResult Read more
Source§fn from_query_result_optional(
res: &QueryResult,
pre: &str,
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional( res: &QueryResult, pre: &str, ) -> Result<Option<Self>, DbErr>
Transform the error from instantiating a Model from a QueryResult
and converting it to an Option
Source§fn from_query_result_nullable(
res: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( res: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
Transform the error from instantiating a Model from a QueryResult
and converting it to an Option Read more
Source§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Source§impl IntoActivityPub for RichNotification
impl IntoActivityPub for RichNotification
fn into_activity_pub_json(self, ctx: &Context) -> Value
Auto Trait Implementations§
impl Freeze for RichNotification
impl RefUnwindSafe for RichNotification
impl Send for RichNotification
impl Sync for RichNotification
impl Unpin for RichNotification
impl UnsafeUnpin for RichNotification
impl UnwindSafe for RichNotification
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