pub struct FilesClient { /* private fields */ }
Expand description
Files.com API client
The main client for interacting with the Files.com API. Handles authentication, request construction, and response processing.
§Examples
use files_sdk::FilesClient;
let client = FilesClient::builder()
.api_key("your-api-key")
.build()?;
// Use with handlers
let file_handler = files_sdk::FileHandler::new(client.clone());
Implementations§
Source§impl FilesClient
impl FilesClient
Sourcepub fn builder() -> FilesClientBuilder
pub fn builder() -> FilesClientBuilder
Creates a new FilesClientBuilder
Sourcepub async fn delete_raw(&self, path: &str) -> Result<Value>
pub async fn delete_raw(&self, path: &str) -> Result<Value>
Trait Implementations§
Source§impl Clone for FilesClient
impl Clone for FilesClient
Source§fn clone(&self) -> FilesClient
fn clone(&self) -> FilesClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FilesClient
impl !RefUnwindSafe for FilesClient
impl Send for FilesClient
impl Sync for FilesClient
impl Unpin for FilesClient
impl !UnwindSafe for FilesClient
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