pub struct WorkerUpdateRequest {
pub priority: Option<u32>,
pub cost: Option<f32>,
pub labels: Option<HashMap<String, String>>,
pub api_key: Option<String>,
pub health_check_timeout_secs: Option<u64>,
pub health_check_interval_secs: Option<u64>,
pub health_success_threshold: Option<u32>,
pub health_failure_threshold: Option<u32>,
pub disable_health_check: Option<bool>,
}Expand description
Worker update request
Fields§
§priority: Option<u32>Update priority
cost: Option<f32>Update cost
labels: Option<HashMap<String, String>>Update labels
api_key: Option<String>Update API key (for key rotation)
health_check_timeout_secs: Option<u64>Update health check timeout in seconds
health_check_interval_secs: Option<u64>Update health check interval in seconds
health_success_threshold: Option<u32>Update health success threshold
health_failure_threshold: Option<u32>Update health failure threshold
disable_health_check: Option<bool>Disable periodic health checks for this worker
Trait Implementations§
Source§impl Clone for WorkerUpdateRequest
impl Clone for WorkerUpdateRequest
Source§fn clone(&self) -> WorkerUpdateRequest
fn clone(&self) -> WorkerUpdateRequest
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 WorkerUpdateRequest
impl Debug for WorkerUpdateRequest
Source§impl<'de> Deserialize<'de> for WorkerUpdateRequest
impl<'de> Deserialize<'de> for WorkerUpdateRequest
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 WorkerUpdateRequest
impl RefUnwindSafe for WorkerUpdateRequest
impl Send for WorkerUpdateRequest
impl Sync for WorkerUpdateRequest
impl Unpin for WorkerUpdateRequest
impl UnwindSafe for WorkerUpdateRequest
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