pub struct FunctionResponse<T> {
pub data: T,
pub status: StatusCode,
pub headers: HashMap<String, String>,
}
Expand description
関数レスポンス
Fields§
§data: T
レスポンスデータ
status: StatusCode
HTTPステータスコード
headers: HashMap<String, String>
レスポンスヘッダー
Trait Implementations§
Source§impl<T: Clone> Clone for FunctionResponse<T>
impl<T: Clone> Clone for FunctionResponse<T>
Source§fn clone(&self) -> FunctionResponse<T>
fn clone(&self) -> FunctionResponse<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for FunctionResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for FunctionResponse<T>where
T: RefUnwindSafe,
impl<T> Send for FunctionResponse<T>where
T: Send,
impl<T> Sync for FunctionResponse<T>where
T: Sync,
impl<T> Unpin for FunctionResponse<T>where
T: Unpin,
impl<T> UnwindSafe for FunctionResponse<T>where
T: UnwindSafe,
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