mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
docs: remove indentation of code example
This commit is contained in:
parent
933c050c98
commit
8f888e96e1
1 changed files with 10 additions and 10 deletions
20
README.md
20
README.md
|
|
@ -57,16 +57,16 @@ println!("{result:#?}");
|
|||
Create a new resource with a new file from a file path:
|
||||
|
||||
```rust
|
||||
let path_buf = current_dir()?.join("data.csv");
|
||||
let result = ckan
|
||||
.resource_create()
|
||||
.package_id("3mz0qhbb-cdb0-ewst-x7c0-casnkwv0edub".to_string())
|
||||
.name("My new resource".to_string())
|
||||
.format("CSV".to_string())
|
||||
.upload(path_buf)
|
||||
.call()
|
||||
.await?;
|
||||
println!("{result:#?}");
|
||||
let path_buf = current_dir()?.join("data.csv");
|
||||
let result = ckan
|
||||
.resource_create()
|
||||
.package_id("3mz0qhbb-cdb0-ewst-x7c0-casnkwv0edub".to_string())
|
||||
.name("My new resource".to_string())
|
||||
.format("CSV".to_string())
|
||||
.upload(path_buf)
|
||||
.call()
|
||||
.await?;
|
||||
println!("{result:#?}");
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue