pub struct TaskRoute {
pub queue: String,
pub exchange: Option<String>,
pub routing_key: Option<String>,
pub priority: Option<u8>,
}Expand description
Task routing configuration
Fields§
§queue: StringTarget queue name
exchange: Option<String>Exchange name
routing_key: Option<String>Routing key
priority: Option<u8>Priority (0-255)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskRoute
impl<'de> Deserialize<'de> for TaskRoute
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 TaskRoute
impl RefUnwindSafe for TaskRoute
impl Send for TaskRoute
impl Sync for TaskRoute
impl Unpin for TaskRoute
impl UnwindSafe for TaskRoute
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