pub struct WorkerInfo {Show 18 fields
pub id: String,
pub url: String,
pub model_id: String,
pub priority: u32,
pub cost: f32,
pub worker_type: String,
pub is_healthy: bool,
pub load: usize,
pub connection_mode: String,
pub runtime_type: Option<String>,
pub tokenizer_path: Option<String>,
pub reasoning_parser: Option<String>,
pub tool_parser: Option<String>,
pub chat_template: Option<String>,
pub bootstrap_port: Option<u16>,
pub metadata: HashMap<String, String>,
pub disable_health_check: bool,
pub job_status: Option<JobStatus>,
}Expand description
Worker information for API responses
Fields§
§id: StringWorker unique identifier
url: StringWorker URL
model_id: StringModel ID this worker serves
priority: u32Worker priority
cost: f32Worker cost factor
worker_type: StringWorker type
is_healthy: boolWhether the worker is healthy
load: usizeCurrent load on the worker
connection_mode: StringConnection mode (http or grpc)
runtime_type: Option<String>Runtime type (sglang or vllm, for gRPC workers)
tokenizer_path: Option<String>§reasoning_parser: Option<String>§tool_parser: Option<String>§chat_template: Option<String>§bootstrap_port: Option<u16>Bootstrap port for prefill workers
metadata: HashMap<String, String>Additional metadata
disable_health_check: boolWhether health checks are disabled for this worker
job_status: Option<JobStatus>Job status for async operations (if available)
Implementations§
Trait Implementations§
Source§impl Clone for WorkerInfo
impl Clone for WorkerInfo
Source§fn clone(&self) -> WorkerInfo
fn clone(&self) -> WorkerInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkerInfo
impl Debug for WorkerInfo
Auto Trait Implementations§
impl Freeze for WorkerInfo
impl RefUnwindSafe for WorkerInfo
impl Send for WorkerInfo
impl Sync for WorkerInfo
impl Unpin for WorkerInfo
impl UnwindSafe for WorkerInfo
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