pub struct MigrateProcessInstanceRequest<T: MigrateProcessInstanceState> { /* private fields */ }Expand description
Implementations§
Source§impl MigrateProcessInstanceRequest<Initial>
impl MigrateProcessInstanceRequest<Initial>
Sourcepub fn with_process_instance_key(
self,
process_instance_key: i64,
) -> MigrateProcessInstanceRequest<WithProcessInstance>
pub fn with_process_instance_key( self, process_instance_key: i64, ) -> MigrateProcessInstanceRequest<WithProcessInstance>
Source§impl MigrateProcessInstanceRequest<WithProcessInstance>
impl MigrateProcessInstanceRequest<WithProcessInstance>
Sourcepub fn with_migration_plan(
self,
target_process_definition_key: i64,
mapping_instructions: Vec<MappingInstruction>,
) -> MigrateProcessInstanceRequest<WithVariables>
pub fn with_migration_plan( self, target_process_definition_key: i64, mapping_instructions: Vec<MappingInstruction>, ) -> MigrateProcessInstanceRequest<WithVariables>
Sets the migration plan with target process and element mappings
§Arguments
target_process_definition_key- The key of the target process definitionmapping_instructions- The instructions for mapping elements between processes
§Returns
The updated MigrateProcessInstanceRequest in the WithVariables state
Sourcepub fn without_migration_plan(
self,
) -> MigrateProcessInstanceRequest<WithVariables>
pub fn without_migration_plan( self, ) -> MigrateProcessInstanceRequest<WithVariables>
Continues without specifying a migration plan
§Returns
The updated MigrateProcessInstanceRequest in the WithVariables state
Source§impl MigrateProcessInstanceRequest<WithVariables>
impl MigrateProcessInstanceRequest<WithVariables>
Sourcepub async fn send(self) -> Result<MigrateProcessInstanceResponse, ClientError>
pub async fn send(self) -> Result<MigrateProcessInstanceResponse, ClientError>
Sends the process instance migration request to the Zeebe workflow engine
§Returns
A Result containing the MigrateProcessInstanceResponse or a ClientError
Sourcepub fn with_operation_reference(self, operation_reference: u64) -> Self
pub fn with_operation_reference(self, operation_reference: u64) -> Self
Trait Implementations§
Source§impl<T: Clone + MigrateProcessInstanceState> Clone for MigrateProcessInstanceRequest<T>
impl<T: Clone + MigrateProcessInstanceState> Clone for MigrateProcessInstanceRequest<T>
Source§fn clone(&self) -> MigrateProcessInstanceRequest<T>
fn clone(&self) -> MigrateProcessInstanceRequest<T>
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 moreAuto Trait Implementations§
impl<T> !Freeze for MigrateProcessInstanceRequest<T>
impl<T> !RefUnwindSafe for MigrateProcessInstanceRequest<T>
impl<T> Send for MigrateProcessInstanceRequest<T>where
T: Send,
impl<T> Sync for MigrateProcessInstanceRequest<T>where
T: Sync,
impl<T> Unpin for MigrateProcessInstanceRequest<T>where
T: Unpin,
impl<T> !UnwindSafe for MigrateProcessInstanceRequest<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request