pub struct WorkflowBinding(/* private fields */);Implementations§
Source§impl WorkflowBinding
impl WorkflowBinding
pub async fn trigger<T: Serialize, U: DeserializeOwned>( &self, input: T, ) -> Result<U>
pub async fn get_status<U: DeserializeOwned>( &self, workflow_id: &str, ) -> Result<U>
Trait Implementations§
Source§impl AsRef<JsValue> for WorkflowBinding
impl AsRef<JsValue> for WorkflowBinding
Source§impl Clone for WorkflowBinding
impl Clone for WorkflowBinding
Source§fn clone(&self) -> WorkflowBinding
fn clone(&self) -> WorkflowBinding
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 moreSource§impl Debug for WorkflowBinding
impl Debug for WorkflowBinding
Source§impl EnvBinding for WorkflowBinding
impl EnvBinding for WorkflowBinding
Source§impl From<JsValue> for WorkflowBinding
impl From<JsValue> for WorkflowBinding
Source§impl From<WorkflowBinding> for JsValue
impl From<WorkflowBinding> for JsValue
Source§fn from(value: WorkflowBinding) -> Self
fn from(value: WorkflowBinding) -> Self
Converts to this type from the input type.
Source§impl JsCast for WorkflowBinding
impl JsCast for WorkflowBinding
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value has a type
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified
type. Read more
impl Send for WorkflowBinding
impl Sync for WorkflowBinding
Auto Trait Implementations§
impl Freeze for WorkflowBinding
impl RefUnwindSafe for WorkflowBinding
impl Unpin for WorkflowBinding
impl UnsafeUnpin for WorkflowBinding
impl UnwindSafe for WorkflowBinding
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