pub async fn put_multiple<T: Serialize>(&mut self, values: T) -> Result<()> {
        let values = JsValue::from_serde(&values)?;
        if !values.is_object() {
            return Err("Must pass in a struct type".to_string().into());
        }
        JsFuture::from(self.inner.put_multiple_internal(values)?)
            .await
            .map_err(Error::from)
            .map(|_| ())
    }
/// Takes a serializable struct and stores each of its keys and values to storage.
Takes a serializable struct and stores each of its keys and values to storage.
Takes a serializable struct and stores each of its keys and values to storage .
pub async fn put_multiple<T: Serialize>(&mut self, values: T) -> Result<()> {
        let values = JsValue::from_serde(&values)?;
        if !values.is_object() {
            return Err("Must pass in a struct type".to_string().into());
        }
        JsFuture::from(self.inner.put_multiple_internal(values)?)
            .await
            .map_err(Error::from)
            .map(|_| ())
    }
pub async fn put_multiple < T : Serialize > ( & mut self , values : T ) -> Result < ( ) > { let values = JsValue :: from_serde ( & values ) ? ; if ! values . is_object ( ) { return Err ( " " . to_string ( ) . into ( ) ) ; } JsFuture :: from ( self . inner . put_multiple_internal ( values ) ? ) . await . map_err ( Error :: from ) . map ( | _ | ( ) ) }
Takes a serializable struct and stores each of its keys and values to storage.
Takes a serializable struct and stores each of its keys and values to storage .
&mut self
values
T
&mut self
values
T