Struct ffsend_api::action::upload::Upload
[−]
[src]
pub struct Upload { /* fields omitted */ }A file upload action to a Send server.
Methods
impl Upload[src]
pub fn new(
host: Url,
path: PathBuf,
name: Option<String>,
password: Option<String>,
params: Option<ParamsData>
) -> Self[src]
host: Url,
path: PathBuf,
name: Option<String>,
password: Option<String>,
params: Option<ParamsData>
) -> Self
Construct a new upload action.
pub fn invoke(
self,
client: &Client,
reporter: &Arc<Mutex<ProgressReporter>>
) -> Result<RemoteFile, Error>[src]
self,
client: &Client,
reporter: &Arc<Mutex<ProgressReporter>>
) -> Result<RemoteFile, Error>
Invoke the upload action.