pub struct RoutingTarget {
pub id: String,
pub engine: String,
pub model: String,
pub weight: u32,
}Expand description
A routable engine/model target in a load-balanced pool.
Fields§
§id: StringStable identifier for health tracking.
engine: StringEngine name (e.g. "forge").
model: StringModel identifier passed to the engine.
weight: u32Relative weight for RoutingStrategy::Weighted.
Trait Implementations§
Source§impl Clone for RoutingTarget
impl Clone for RoutingTarget
Source§fn clone(&self) -> RoutingTarget
fn clone(&self) -> RoutingTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingTarget
impl Debug for RoutingTarget
Source§impl<'de> Deserialize<'de> for RoutingTarget
impl<'de> Deserialize<'de> for RoutingTarget
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
impl Eq for RoutingTarget
Source§impl PartialEq for RoutingTarget
impl PartialEq for RoutingTarget
Source§impl Serialize for RoutingTarget
impl Serialize for RoutingTarget
impl StructuralPartialEq for RoutingTarget
Auto Trait Implementations§
impl Freeze for RoutingTarget
impl RefUnwindSafe for RoutingTarget
impl Send for RoutingTarget
impl Sync for RoutingTarget
impl Unpin for RoutingTarget
impl UnsafeUnpin for RoutingTarget
impl UnwindSafe for RoutingTarget
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