4 configuration options · available in Rust, Python
use opendal::Operator;
let op = Operator::via_iter("pcloud", [
("endpoint".to_string(), "...".to_string()),
])?;
use opendal::Operator;
let op = Operator::via_iter("pcloud", [
// root of this backend.
//
// All operations will happen under this root.
// ("root".to_string(), "...".to_string()),
// pCloud endpoint address.
("endpoint".to_string(), "...".to_string()),
// pCloud username.
// ("username".to_string(), "...".to_string()),
// pCloud password.
// ("password".to_string(), "...".to_string()),
])?;
Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | root of this backend. All operations will happen under this root. |
endpoint | string | yes | pCloud endpoint address. |
username | string | no | pCloud username. |
password | string | no | pCloud password. |