pub struct Client { /* private fields */ }Expand description
Client for interacting with the Reality Defender API
Implementations§
Source§impl Client
impl Client
Sourcepub async fn upload(&self, options: UploadOptions) -> Result<UploadResult>
pub async fn upload(&self, options: UploadOptions) -> Result<UploadResult>
Upload a file for analysis
Sourcepub async fn get_result(
&self,
request_id: &str,
options: Option<GetResultOptions>,
) -> Result<AnalysisResult>
pub async fn get_result( &self, request_id: &str, options: Option<GetResultOptions>, ) -> Result<AnalysisResult>
Get the analysis result for a specific request ID
Sourcepub async fn process_batch(
&self,
file_paths: Vec<&str>,
options: BatchOptions,
) -> Result<Vec<AnalysisResult>>
pub async fn process_batch( &self, file_paths: Vec<&str>, options: BatchOptions, ) -> Result<Vec<AnalysisResult>>
Process a batch of files concurrently
Sourcepub async fn detect_file(&self, file_path: &str) -> Result<AnalysisResult>
pub async fn detect_file(&self, file_path: &str) -> Result<AnalysisResult>
Simplified method to detect a file
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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