pub async fn contact_find_all(&self, query: Option<ContactQueryFilter>) -> Result<Vec<Contact<T>>, WechatyError> {
        debug!("contact_find_all(query = {:?})", query);
        if !self.is_logged_in() {
            return Err(WechatyError::NotLoggedIn);
        }
        let query = match query {
            Some(query) => query,
            None => ContactQueryFilter::default(),
        };
        match self.puppet().contact_search(query, None).await {
            Ok(contact_id_list) => Ok(self.contact_load_batch(contact_id_list).await),
            Err(e) => Err(WechatyError::from(e)),
        }
    }
/// Find all contacts that match the query
Find all contacts that match the query
Find all contacts that match the query
pub async fn contact_find_all(&self, query: Option<ContactQueryFilter>) -> Result<Vec<Contact<T>>, WechatyError> {
        debug!("contact_find_all(query = {:?})", query);
        if !self.is_logged_in() {
            return Err(WechatyError::NotLoggedIn);
        }
        let query = match query {
            Some(query) => query,
            None => ContactQueryFilter::default(),
        };
        match self.puppet().contact_search(query, None).await {
            Ok(contact_id_list) => Ok(self.contact_load_batch(contact_id_list).await),
            Err(e) => Err(WechatyError::from(e)),
        }
    }
pub async fn contact_find_all ( & self , query : Option < ContactQueryFilter > ) -> Result < Vec < Contact < T > > , WechatyError > { debug ! ( " " query ) ; if ! self . is_logged_in ( ) { return Err ( WechatyError :: NotLoggedIn ) ; } let query = match query { Some ( query ) => query , None => ContactQueryFilter :: default ( ) , } ; match self . puppet ( ) . contact_search ( query , None ) . await { Ok ( contact_id_list ) => Ok ( self . contact_load_batch ( contact_id_list ) . await ) , Err ( e ) => Err ( WechatyError :: from ( e ) ) , } }
Find all contacts that match the query
Find all contacts that match the query
&self
query
Option<ContactQueryFilter>
&self
query
Option<ContactQueryFilter>