pub(crate) struct MessageListResponse {
pub(crate) email: String,
pub(crate) count: u64,
pub(crate) messages: Vec<Message>,
}Expand description
GET /messages のレスポンスボディ
Fields§
§email: String認証済みユーザーのメールアドレス。リクエストの JWT クレームから取得。
count: u64メッセージ件数。
messages: Vec<Message>メッセージ一覧。作成日時の降順(新しい順)で格納される。
Trait Implementations§
Source§impl Debug for MessageListResponse
impl Debug for MessageListResponse
Auto Trait Implementations§
impl Freeze for MessageListResponse
impl RefUnwindSafe for MessageListResponse
impl Send for MessageListResponse
impl Sync for MessageListResponse
impl Unpin for MessageListResponse
impl UnsafeUnpin for MessageListResponse
impl UnwindSafe for MessageListResponse
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.