pub struct WorkerTarget {
pub is_pull_mode: bool,
pub task_queue: String,
}Fields§
§is_pull_mode: boolRoutes work through a connected pull Worker. Dex requires true whenever a target is set.
task_queue: StringNames the task queue whose pull Workers run this Flow’s Steps and RPCs. Only Workers registered on this task queue receive the Flow’s work, through its sticky Worker or its Flow type queue inside the task queue. The task queue is fixed when the Flow starts. At StartFlow, an empty name selects the default task queue. In a SubFlow override, an empty name keeps the parent’s task queue, and “dex.default” selects the default task queue. In UpdateFlowConfig, an empty name keeps the run’s task queue, and Dex rejects another task queue with INVALID_ARGUMENT. A name has 1 to 63 characters from A-Z, a-z, 0-9, ‘.’, ‘_’, and ‘-’. Names starting with “dex.” are reserved; only “dex.default” is accepted, and Dex stores it as the empty default name. Dex rejects a name with INVALID_ARGUMENT when is_pull_mode is false or the name is invalid. Requires Server protocol version 5 or later.
Trait Implementations§
Source§impl Clone for WorkerTarget
impl Clone for WorkerTarget
Source§impl Debug for WorkerTarget
impl Debug for WorkerTarget
Source§impl Default for WorkerTarget
impl Default for WorkerTarget
impl Eq for WorkerTarget
Source§impl Hash for WorkerTarget
impl Hash for WorkerTarget
Source§impl Message for WorkerTarget
impl Message for WorkerTarget
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for WorkerTarget
impl PartialEq for WorkerTarget
impl StructuralPartialEq for WorkerTarget
Auto Trait Implementations§
impl Forget for WorkerTarget
impl Freeze for WorkerTarget
impl Move for WorkerTarget
impl RefUnwindSafe for WorkerTarget
impl Send for WorkerTarget
impl Sync for WorkerTarget
impl Unpin for WorkerTarget
impl UnsafeUnpin for WorkerTarget
impl UnwindSafe for WorkerTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
T in a tonic::Request