pub struct Dwh {
pub auth_token: String,
/* private fields */
}Fields§
§auth_token: StringImplementations§
source§impl Dwh
impl Dwh
pub fn new(host: String) -> Result<Dwh>
pub fn set_hooks(&mut self, hooks: Vec<Box<dyn ReqwestHooks + Send + Sync>>)
pub async fn fetch(&self, expressions: &Vec<String>) -> Result<DwhResult>
pub async fn fetch_strings( &self, expressions: &Vec<String> ) -> Result<Vec<String>>
pub async fn fetch_string(&self, expression: String) -> Result<String>
pub async fn fetch_i32(&self, expression: String) -> Result<i32>
pub async fn login(&mut self, user: &str, password: &str) -> Result<()>
pub async fn use_backdoor(&self) -> Result<Credentials>
pub async fn use_backdooor_and_login(&mut self) -> Result<Credentials>
pub async fn download( &self, path: String, options: Option<DownloadFileOptions> ) -> Result<DownloadStream>
pub async fn upload_with_len( &self, path: String, body: Body, len: u64 ) -> Result<()>
pub async fn upload( &self, read: File, remote_path: String, len: u64 ) -> Result<()>
pub async fn upload_file(&self, local_path: String, path: String) -> Result<()>
pub async fn upload_string(&self, content: String, path: String) -> Result<()>
pub async fn restart(&mut self, timeout: Duration) -> Result<()>
pub async fn files<OnEvent: Fn(FileWalkEvent)>( &self, path_with_pattern: String, start_lines: Option<usize>, on_event: Option<&OnEvent> ) -> Result<Vec<FileInfo>>
pub async fn file_walk<OnEvent: Fn(FileWalkEvent)>( &self, path: String, on_event: Option<&OnEvent> ) -> Result<Vec<FileInfo>>
Auto Trait Implementations§
impl !RefUnwindSafe for Dwh
impl Send for Dwh
impl Sync for Dwh
impl Unpin for Dwh
impl !UnwindSafe for Dwh
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