pub struct WorkerUpdateRequest {
pub priority: Option<u32>,
pub cost: Option<f32>,
pub labels: Option<HashMap<String, String>>,
pub api_key: Option<String>,
pub health: Option<HealthCheckUpdate>,
}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: Option<HealthCheckUpdate>Update health check configuration (partial — only specified fields change)
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
Source§impl JsonSchema for WorkerUpdateRequest
impl JsonSchema for WorkerUpdateRequest
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WorkerUpdateRequest
impl RefUnwindSafe for WorkerUpdateRequest
impl Send for WorkerUpdateRequest
impl Sync for WorkerUpdateRequest
impl Unpin for WorkerUpdateRequest
impl UnsafeUnpin 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