pub fn all_docs_without_passwords(&self) -> Promise {
        // TODO all docs without password -> update field names
        let action = JsFuture::from(self.find(
            &JsValue::from_serde(&json!({
                "selector": {},
                "fields": [
                    "_id", "_rev", "type", "user", "url", "title", "tags", "tabID", "catID",
                    "name", "desc"
                ],
        })).unwrap()));
        future_to_promise(async move {
            match action.await {
                Ok(resolved) => {
                    match resolved.into_serde::<Value>() {
                        Ok(val) => {
                            //log(&format!("all_docs_without_passwords: {:?}", &val["docs"]));
                            Ok(JsValue::from_serde(&val["docs"]).unwrap())
                        },
                        Err(_) => {
                            Err(JsValue::undefined())
                        }
                    }
                },
                Err(_) => {
                    Err(JsValue::undefined())
                }
            }
        })
    }
/// Returns all documents (password- and category-entries) without the "passwd" field.
Returns all documents (password- and category-entries) without the "passwd" field.
Returns all documents ( password - and category - entries ) without the " passwd " field .
pub fn all_docs_without_passwords(&self) -> Promise {
        // TODO all docs without password -> update field names
        let action = JsFuture::from(self.find(
            &JsValue::from_serde(&json!({
                "selector": {},
                "fields": [
                    "_id", "_rev", "type", "user", "url", "title", "tags", "tabID", "catID",
                    "name", "desc"
                ],
        })).unwrap()));
        future_to_promise(async move {
            match action.await {
                Ok(resolved) => {
                    match resolved.into_serde::<Value>() {
                        Ok(val) => {
                            //log(&format!("all_docs_without_passwords: {:?}", &val["docs"]));
                            Ok(JsValue::from_serde(&val["docs"]).unwrap())
                        },
                        Err(_) => {
                            Err(JsValue::undefined())
                        }
                    }
                },
                Err(_) => {
                    Err(JsValue::undefined())
                }
            }
        })
    }
pub fn all_docs_without_passwords ( & self ) -> Promise { // TODO all docs without password -> update field names let action = JsFuture :: from ( self . find ( & JsValue :: from_serde ( & json ! ( { " " { } " " [ " " " " " " " " " " " " " " " " " " " " " " ] } ) ) . unwrap ( ) ) ) ; future_to_promise ( async move { match action . await { Ok ( resolved ) => { match resolved . into_serde :: < Value > ( ) { Ok ( val ) => { //log(&format!("all_docs_without_passwords: {:?}", &val["docs"])); Ok ( JsValue :: from_serde ( & val [ " " ] ) . unwrap ( ) ) } , Err ( _ ) => { Err ( JsValue :: undefined ( ) ) } } } , Err ( _ ) => { Err ( JsValue :: undefined ( ) ) } } } ) }
Returns all documents (password- and category-entries) without the "passwd" field.
Returns all documents ( password - and category - entries ) without the " passwd " field .
&self
&self