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