pub struct WorkflowHistory { /* private fields */ }Expand description
Recorded workflow input and history, independent of a live Server.
Implementations§
Source§impl WorkflowHistory
impl WorkflowHistory
Sourcepub fn from_export(export: Value) -> Result<Self>
pub fn from_export(export: Value) -> Result<Self>
Import a dw workflow:history-export or SDK export bundle.
Payloads must be present and resolved; redacted/pruned input is refused.
Sourcepub fn from_history<T: Serialize>(
workflow_type: &str,
input: T,
history: Value,
) -> Result<Self>
pub fn from_history<T: Serialize>( workflow_type: &str, input: T, history: Value, ) -> Result<Self>
Import all pages of the Server history API, supplying original input. Also accepts an array of events. A remaining page token is refused.
Sourcepub fn task_queue(self, queue: impl Into<String>) -> Self
pub fn task_queue(self, queue: impl Into<String>) -> Self
Override task-queue context omitted by a raw history response.
pub fn workflow_type(&self) -> &str
pub fn events(&self) -> &[HistoryEvent]
Trait Implementations§
Source§impl Clone for WorkflowHistory
impl Clone for WorkflowHistory
Source§fn clone(&self) -> WorkflowHistory
fn clone(&self) -> WorkflowHistory
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for WorkflowHistory
impl RefUnwindSafe for WorkflowHistory
impl Send for WorkflowHistory
impl Sync for WorkflowHistory
impl Unpin for WorkflowHistory
impl UnwindSafe for WorkflowHistory
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