Struct madome_client::file::FileClient[][src]

pub struct FileClient { /* fields omitted */ }

Implementations

Aurguments

  • url_path: don’t add slash to front

example

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);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Performs the conversion.

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.