Skip to main content

Module common

Module common 

Source
Expand description

Common helpers.

Structs§

HashMapStringString
Newtype for the HashMap<String, String>

Functions§

build_upload_asyncread
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
build_upload_asyncread_from_file
Construct BoxedAsyncRead with progress bar from the file
build_upload_asyncread_from_stdin
Construct BoxedAsyncRead with progress bar from stdin
download_file
Download content from the reqwests response stream. When dst_name = “-” - write content to the stdout. Otherwise write into the destination and display progress_bar
parse_json
parse_key_val
Parse a single key-value pair
parse_key_val_opt
Parse a single key-value pair where value can be null