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 duplicate 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
Source§type Anchor = RcRef<WasmResponse>
type Anchor = RcRef<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
Source§impl TryFromJsValue for WasmResponse
impl TryFromJsValue for WasmResponse
Source§impl VectorFromWasmAbi for WasmResponse
impl VectorFromWasmAbi for WasmResponse
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmResponse]>
Source§impl VectorIntoJsValue for WasmResponse
impl VectorIntoJsValue for WasmResponse
fn vector_into_jsvalue(vector: Box<[WasmResponse]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmResponse
impl VectorIntoWasmAbi for WasmResponse
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmResponse]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmResponse
impl WasmDescribeVector for WasmResponse
impl SupportsConstructor for WasmResponse
impl SupportsInstanceProperty for WasmResponse
impl SupportsStaticProperty for WasmResponse
Auto Trait Implementations§
impl Freeze for WasmResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.