pub struct FileClient { /* fields omitted */ }
- url_path: don’t add slash to front
use madome_client::FileClient;
let token = String::from("");
let file_client = FileClient::new("https:://abcd.bcda");
let buf = std::fs::read("./.temp/1234/0.jpg").unwrap();
file_client.upload(&token, "image/library/1234/0.jpg", buf);
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.