pub enum PosturePatchValue {
Int(u64),
Float(f64),
Null,
}Expand description
A set_fleet_posture threshold value.
The wire carries integers for the five count/window keys and a float for
cordon_duty_percent; Null is the cordon_sim_intake_floor restore
sentinel.
Variants§
Int(u64)
An integer threshold.
Float(f64)
A float threshold (cordon_duty_percent).
Null
Restore half the slot cap (cordon_sim_intake_floor only).
Implementations§
Source§impl PosturePatchValue
impl PosturePatchValue
Sourcepub fn json_value(self) -> Value
pub fn json_value(self) -> Value
The JSON value the wire carries. A non-finite float cannot cross JSON
and degrades to null (the host then rejects it - domain validation
stays server-side).
Trait Implementations§
Source§impl Clone for PosturePatchValue
impl Clone for PosturePatchValue
Source§fn clone(&self) -> PosturePatchValue
fn clone(&self) -> PosturePatchValue
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 moreimpl Copy for PosturePatchValue
Source§impl Debug for PosturePatchValue
impl Debug for PosturePatchValue
Source§impl PartialEq for PosturePatchValue
impl PartialEq for PosturePatchValue
impl StructuralPartialEq for PosturePatchValue
Auto Trait Implementations§
impl Freeze for PosturePatchValue
impl RefUnwindSafe for PosturePatchValue
impl Send for PosturePatchValue
impl Sync for PosturePatchValue
impl Unpin for PosturePatchValue
impl UnsafeUnpin for PosturePatchValue
impl UnwindSafe for PosturePatchValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more