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() ..Default::default()
}; };
let result = client let _result = client
.list_objects_v2(list_objects_request) .list_objects_v2(list_objects_request)
.sync() .sync()
.expect("Can't list contents of buckets"); .expect("Can't list contents of buckets")
println!("List result: {:?}", result); .contents.unwrap()
.iter()
.for_each(|item| { println!("{}", item.key.as_ref().unwrap()) });
} }

Loading…
Cancel
Save