pub struct CloudConvertClient { /* private fields */ }Implementations§
Source§impl CloudConvertClient
impl CloudConvertClient
pub fn builder(api_key: ApiKey) -> ClientBuilder
pub fn builder_with_access_token( access_token: OAuthAccessToken, ) -> ClientBuilder
pub fn config(&self) -> &CloudConvertConfig
pub fn jobs(&self) -> JobsResource
pub fn tasks(&self) -> TasksResource
pub fn users(&self) -> UsersResource
pub fn webhooks(&self) -> WebhooksResource
pub fn operations(&self) -> OperationsResource
pub fn socket_base_url(&self) -> &'static str
pub fn socket_subscription(&self, channel: SocketChannel) -> SocketSubscription
pub async fn download(&self, url: impl AsRef<str>) -> Result<Bytes>
pub async fn download_stream( &self, url: impl AsRef<str>, ) -> Result<impl Stream<Item = Result<Bytes>>>
pub async fn download_to_path( &self, url: impl AsRef<str>, destination: impl AsRef<Path>, ) -> Result<()>
pub async fn upload_bytes( &self, task: &Task, filename: impl Into<String>, bytes: impl Into<Bytes>, ) -> Result<()>
pub async fn upload_body( &self, task: &Task, filename: impl Into<String>, body: Body, ) -> Result<()>
pub async fn upload_stream<S, B, E>( &self, task: &Task, filename: impl Into<String>, stream: S, ) -> Result<()>
pub async fn upload_path( &self, task: &Task, path: impl AsRef<Path>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for CloudConvertClient
impl Clone for CloudConvertClient
Source§fn clone(&self) -> CloudConvertClient
fn clone(&self) -> CloudConvertClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudConvertClient
impl !RefUnwindSafe for CloudConvertClient
impl Send for CloudConvertClient
impl Sync for CloudConvertClient
impl Unpin for CloudConvertClient
impl UnsafeUnpin for CloudConvertClient
impl !UnwindSafe for CloudConvertClient
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