Struct axum_browser_adapter::WasmRequest
source · pub struct WasmRequest {
pub method: String,
pub url: String,
pub headers: HashMap<String, String>,
pub body: Option<String>,
}
Fields§
§method: String
§url: String
§headers: HashMap<String, String>
§body: Option<String>
Implementations§
source§impl WasmRequest
impl WasmRequest
Trait Implementations§
source§impl Clone for WasmRequest
impl Clone for WasmRequest
source§fn clone(&self) -> WasmRequest
fn clone(&self) -> WasmRequest
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 WasmRequest
impl Debug for WasmRequest
source§impl<'de> Deserialize<'de> for WasmRequest
impl<'de> Deserialize<'de> for WasmRequest
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<WasmRequest> for JsValue
impl From<WasmRequest> for JsValue
source§fn from(value: WasmRequest) -> Self
fn from(value: WasmRequest) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for WasmRequest
impl FromWasmAbi for WasmRequest
source§impl IntoWasmAbi for WasmRequest
impl IntoWasmAbi for WasmRequest
source§impl LongRefFromWasmAbi for WasmRequest
impl LongRefFromWasmAbi for WasmRequest
source§impl OptionFromWasmAbi for WasmRequest
impl OptionFromWasmAbi for WasmRequest
source§impl OptionIntoWasmAbi for WasmRequest
impl OptionIntoWasmAbi for WasmRequest
source§impl RefFromWasmAbi for WasmRequest
impl RefFromWasmAbi for WasmRequest
§type Anchor = Ref<'static, WasmRequest>
type Anchor = Ref<'static, WasmRequest>
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 WasmRequest
impl RefMutFromWasmAbi for WasmRequest
source§impl Serialize for WasmRequest
impl Serialize for WasmRequest
Auto Trait Implementations§
impl RefUnwindSafe for WasmRequest
impl Send for WasmRequest
impl Sync for WasmRequest
impl Unpin for WasmRequest
impl UnwindSafe for WasmRequest
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
.