pub struct Capture { /* private fields */ }Implementations§
Source§impl Capture
impl Capture
pub fn new(key: String, secret: String) -> Self
pub fn with_options( key: String, secret: String, options: CaptureOptions, ) -> Self
pub fn with_edge(self) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_client(self, client: Client) -> Self
pub fn build_image_url( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<String>
pub fn build_pdf_url( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<String>
pub fn build_content_url( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<String>
pub fn build_metadata_url( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<String>
pub fn build_animated_url( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<String>
pub fn build_screenshot_url( &self, url: &str, options: Option<&ScreenshotOptions>, ) -> Result<String>
pub fn build_pdf_url_structured( &self, url: &str, options: Option<&PdfOptions>, ) -> Result<String>
pub fn build_content_url_structured( &self, url: &str, options: Option<&ContentOptions>, ) -> Result<String>
pub fn build_metadata_url_structured( &self, url: &str, options: Option<&MetadataOptions>, ) -> Result<String>
pub async fn fetch_image( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<Vec<u8>>
pub async fn fetch_pdf( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<Vec<u8>>
pub async fn fetch_content( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<ContentResponse>
pub async fn fetch_metadata( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<MetadataResponse>
pub async fn fetch_animated( &self, url: &str, options: Option<&RequestOptions>, ) -> Result<Vec<u8>>
pub async fn fetch_screenshot( &self, url: &str, options: Option<&ScreenshotOptions>, ) -> Result<Vec<u8>>
pub async fn fetch_pdf_structured( &self, url: &str, options: Option<&PdfOptions>, ) -> Result<Vec<u8>>
pub async fn fetch_content_structured( &self, url: &str, options: Option<&ContentOptions>, ) -> Result<ContentResponse>
pub async fn fetch_metadata_structured( &self, url: &str, options: Option<&MetadataOptions>, ) -> Result<MetadataResponse>
pub async fn create_session( &self, options: Option<&CreateSessionOptions>, ) -> Result<SessionResponse>
pub async fn get_session(&self, session_id: &str) -> Result<SessionResponse>
pub async fn close_session(&self, session_id: &str) -> Result<SessionResponse>
pub async fn execute_action( &self, session_id: &str, action_type: &str, payload: Option<&SessionActionPayload>, ) -> Result<SessionActionResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for Capture
impl !UnwindSafe for Capture
impl Freeze for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
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