pub(crate) struct CreatedMessage {
pub(crate) id: Uuid,
pub(crate) cognito_id: Uuid,
pub(crate) is_from_user: bool,
pub(crate) body: String,
pub(crate) created_at: Option<DateTime<FixedOffset>>,
}Expand description
新規作成したメッセージの詳細情報
Fields§
§id: Uuidメッセージ ID。
cognito_id: UuidCognito ユーザー ID。
is_from_user: bool利用者からの投稿なら true。
body: Stringメッセージ本文。
created_at: Option<DateTime<FixedOffset>>メッセージ作成日時。
Trait Implementations§
Source§impl Debug for CreatedMessage
impl Debug for CreatedMessage
Source§impl From<Model> for CreatedMessage
impl From<Model> for CreatedMessage
Auto Trait Implementations§
impl Freeze for CreatedMessage
impl RefUnwindSafe for CreatedMessage
impl Send for CreatedMessage
impl Sync for CreatedMessage
impl Unpin for CreatedMessage
impl UnsafeUnpin for CreatedMessage
impl UnwindSafe for CreatedMessage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
§fn into_response(self) -> FunctionResponse<B, Body>
fn into_response(self) -> FunctionResponse<B, Body>
Convert the type into a FunctionResponse.
Creates a shared type from an unshared type.