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