Skip to content

Best practice to read remote data after API breaking change in ~0.45? #4802

Answered by Xuanwo
imWildCat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you can use opendal with serde_json in this way:

let remote_data_raw = operator.read(&remote_path).await?;
let remote_data: T = serde_json::from_reader(remote_data_raw.reader())?;

For more usage about our Reader and Buffer API, please refer to:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@imWildCat
Comment options

Answer selected by imWildCat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants