pub struct RegisterWorkerRequest {
pub namespace: String,
pub identity: String,
pub queue: String,
pub workflows: Option<Vec<String>>,
pub activities: Option<Vec<String>>,
pub max_concurrent_workflows: i32,
pub max_concurrent_activities: i32,
}Fields§
§namespace: StringNamespace (default: “main”)
identity: StringHuman-readable worker identity (e.g. “pipeline-pod-1”)
queue: StringTask queue this worker listens on
workflows: Option<Vec<String>>Workflow types this worker can execute
activities: Option<Vec<String>>Activity types this worker can execute
max_concurrent_workflows: i32§max_concurrent_activities: i32Trait Implementations§
Source§impl ComposeSchema for RegisterWorkerRequest
impl ComposeSchema for RegisterWorkerRequest
Source§impl<'de> Deserialize<'de> for RegisterWorkerRequest
impl<'de> Deserialize<'de> for RegisterWorkerRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RegisterWorkerRequest
impl RefUnwindSafe for RegisterWorkerRequest
impl Send for RegisterWorkerRequest
impl Sync for RegisterWorkerRequest
impl Unpin for RegisterWorkerRequest
impl UnsafeUnpin for RegisterWorkerRequest
impl UnwindSafe for RegisterWorkerRequest
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more