Function bigtable::wraps::read_rows [] [src]

pub fn read_rows(table: Table,
                 token: &Token,
                 rows_limit: Option<i64>)
                 -> Result<Value, BTErr>
extern crate bigtable as bt;

use bt::utils::*;
use bt::error::BTErr;
use bt::wraps;

const TOKEN_URL: &'static str = "https://www.googleapis.com/oauth2/v4/token";
const ISS: &'static str = "service_acc@developer.gserviceaccount.com";
const PK: &'static str = "random_rsa_for_tests";

fn main() {

   let token = get_auth_token(TOKEN_URL, ISS, PK)?;
   let table = Default::default();

   let _ = wraps::read_rows(table, &token, Some(limit));

}