pub struct JsString(/* private fields */);Implementations§
Methods from Deref<Target = JsValue>§
pub fn browser(&self) -> &Browser
Sourcepub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.
async fn example(input: &HTMLInputElement) {
let _val = input.get_value().retrieve_json().await;
}Trait Implementations§
Source§impl JsCast for JsString
impl JsCast for JsString
fn unchecked_from_js(val: JsValue) -> JsString
fn unchecked_from_js_ref(val: &JsValue) -> &JsString
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl RpcDeserialize for JsString
impl RpcDeserialize for JsString
Source§impl UseInJsCode for JsString
impl UseInJsCode for JsString
impl<'a> ToJs<JsString> for &'a str
impl ToJs<JsString> for str
Auto Trait Implementations§
impl Freeze for JsString
impl !RefUnwindSafe for JsString
impl Send for JsString
impl Sync for JsString
impl Unpin for JsString
impl !UnwindSafe for JsString
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