Struct FileUploader
Source pub struct FileUploader {}
examples/upload_file.rs (
line 8)
3fn main() {
4 println!("Starts to upload a file for an example");
5
6 let file_path = "examples/data/simple.txt";
7
8 let uploader = FileUploader::new();
9 uploader.upload("dummy_upload_file", file_path);
10
11 println!("Finishes file upload");
12}
examples/upload_file.rs (
line 9)
3fn main() {
4 println!("Starts to upload a file for an example");
5
6 let file_path = "examples/data/simple.txt";
7
8 let uploader = FileUploader::new();
9 uploader.upload("dummy_upload_file", file_path);
10
11 println!("Finishes file upload");
12}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
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
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.