[][src]Struct camunda_client::models::fetch_external_tasks_dto::FetchExternalTasksDto

pub struct FetchExternalTasksDto {
    pub worker_id: String,
    pub max_tasks: Option<i32>,
    pub use_priority: Option<bool>,
    pub async_response_timeout: Option<i64>,
    pub topics: Option<Vec<FetchExternalTaskTopicDto>>,
}

Fields

worker_id: String

Mandatory. The id of the worker on which behalf tasks are fetched. The returned tasks are locked for that worker and can only be completed when providing the same worker id.

max_tasks: Option<i32>

Mandatory. The maximum number of tasks to return.

use_priority: Option<bool>

A boolean value, which indicates whether the task should be fetched based on its priority or arbitrarily.

async_response_timeout: Option<i64>

The Long Polling timeout in milliseconds. Note: The value cannot be set larger than 1.800.000 milliseconds (corresponds to 30 minutes).

topics: Option<Vec<FetchExternalTaskTopicDto>>

A JSON array of topic objects for which external tasks should be fetched. The returned tasks may be arbitrarily distributed among these topics. Each topic object has the following properties:

Implementations

impl FetchExternalTasksDto[src]

pub fn new(worker_id: String, max_tasks: Option<i32>) -> FetchExternalTasksDto[src]

Trait Implementations

impl Clone for FetchExternalTasksDto[src]

impl Debug for FetchExternalTasksDto[src]

impl<'de> Deserialize<'de> for FetchExternalTasksDto[src]

impl PartialEq<FetchExternalTasksDto> for FetchExternalTasksDto[src]

impl Serialize for FetchExternalTasksDto[src]

impl StructuralPartialEq for FetchExternalTasksDto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err