Struct axum_browser_adapter::WasmResponse
source · pub struct WasmResponse {
pub status_code: String,
pub headers: HashMap<String, String>,
pub body: Option<String>,
}
Fields§
§status_code: String
§headers: HashMap<String, String>
§body: Option<String>
Implementations§
Trait Implementations§
source§impl Clone for WasmResponse
impl Clone for WasmResponse
source§fn clone(&self) -> WasmResponse
fn clone(&self) -> WasmResponse
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 moresource§impl Debug for WasmResponse
impl Debug for WasmResponse
source§impl<'de> Deserialize<'de> for WasmResponse
impl<'de> Deserialize<'de> for WasmResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<WasmResponse> for JsValue
impl From<WasmResponse> for JsValue
source§fn from(value: WasmResponse) -> Self
fn from(value: WasmResponse) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for WasmResponse
impl FromWasmAbi for WasmResponse
source§impl IntoWasmAbi for WasmResponse
impl IntoWasmAbi for WasmResponse
source§impl LongRefFromWasmAbi for WasmResponse
impl LongRefFromWasmAbi for WasmResponse
source§impl OptionFromWasmAbi for WasmResponse
impl OptionFromWasmAbi for WasmResponse
source§impl OptionIntoWasmAbi for WasmResponse
impl OptionIntoWasmAbi for WasmResponse
source§impl RefFromWasmAbi for WasmResponse
impl RefFromWasmAbi for WasmResponse
§type Anchor = Ref<'static, WasmResponse>
type Anchor = Ref<'static, WasmResponse>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for WasmResponse
impl RefMutFromWasmAbi for WasmResponse
source§impl Serialize for WasmResponse
impl Serialize for WasmResponse
Auto Trait Implementations§
impl RefUnwindSafe for WasmResponse
impl Send for WasmResponse
impl Sync for WasmResponse
impl Unpin for WasmResponse
impl UnwindSafe for WasmResponse
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.