Skip to main content

build_upload_asyncread

Function build_upload_asyncread 

Source
pub async fn build_upload_asyncread(
    src_name: Option<String>,
) -> Result<BoxedAsyncRead, OpenStackCliError>
Expand description

Wrap file or stdout for being uploaded with reqwests library. When dst_name = “-” - write content to the stdout. Otherwise write into the destination and display progress_bar