Browse Source

Getting results

master
Julio Biason 5 years ago
parent
commit
5f4c953254
  1. 8
      src/main.rs

8
src/main.rs

@ -34,9 +34,11 @@ fn main() {
..Default::default()
};
let result = client
let _result = client
.list_objects_v2(list_objects_request)
.sync()
.expect("Can't list contents of buckets");
println!("List result: {:?}", result);
.expect("Can't list contents of buckets")
.contents.unwrap()
.iter()
.for_each(|item| { println!("{}", item.key.as_ref().unwrap()) });
}

Loading…
Cancel
Save