@ -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()) });
}