pub struct Site { /* private fields */ }
Implementations§
source§impl Site
impl Site
pub fn new(auth: Auth) -> Site
pub fn with_key(key: String) -> Site
pub fn with_password(user: String, password: String) -> Site
pub fn info(&self) -> Result<Info, Error>
pub fn list(&self) -> Result<Vec<File>, Error>
pub fn upload(&self, path: String, file: PathBuf) -> Result<(), Error>
pub fn delete(&self, files: Vec<String>) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Site
impl !RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl !UnwindSafe for Site
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more