pub struct GenericTask { /* private fields */ }Expand description
Builder for a custom CloudConvert task operation.
Use this when the API supports an operation or option that is not yet typed by this SDK.
use cloudconvert_sdk::TaskRequest;
let task = TaskRequest::custom("custom/op")
.field("input", "import-file")
.field("answer", 42);
assert_eq!(task.operation(), "custom/op");Implementations§
Trait Implementations§
Source§impl Clone for GenericTask
impl Clone for GenericTask
Source§fn clone(&self) -> GenericTask
fn clone(&self) -> GenericTask
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 moreSource§impl Debug for GenericTask
impl Debug for GenericTask
Source§impl From<GenericTask> for TaskRequest
impl From<GenericTask> for TaskRequest
Source§fn from(value: GenericTask) -> Self
fn from(value: GenericTask) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericTask
impl RefUnwindSafe for GenericTask
impl Send for GenericTask
impl Sync for GenericTask
impl Unpin for GenericTask
impl UnsafeUnpin for GenericTask
impl UnwindSafe for GenericTask
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