pub struct NodeValueUpdate {
pub value: Value,
pub access_mode: String,
pub min: Option<f64>,
pub max: Option<f64>,
pub inc: Option<f64>,
}Expand description
Live node value update published by the service on change.
min, max, and inc are optional runtime constraint hints.
When present, the UI can tighten slider ranges without re-parsing XML.
Services that do not implement constraint propagation may omit them.
Legacy payload. New code should publish FeatureState instead — it
carries the same information plus runtime introspection (access mode, kind,
implementation/availability, available enum entries). NodeValueUpdate
stays in the wire contract so older services/clients keep working.
Fields§
§value: Value§access_mode: String§min: Option<f64>Optional minimum allowed value for this node at the current camera state.
max: Option<f64>Optional maximum allowed value for this node at the current camera state.
inc: Option<f64>Optional increment (step) for this node’s value.
Trait Implementations§
Source§impl Clone for NodeValueUpdate
impl Clone for NodeValueUpdate
Source§fn clone(&self) -> NodeValueUpdate
fn clone(&self) -> NodeValueUpdate
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 NodeValueUpdate
impl Debug for NodeValueUpdate
Source§impl<'de> Deserialize<'de> for NodeValueUpdate
impl<'de> Deserialize<'de> for NodeValueUpdate
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 From<&FeatureState> for NodeValueUpdate
impl From<&FeatureState> for NodeValueUpdate
Source§fn from(s: &FeatureState) -> Self
fn from(s: &FeatureState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeValueUpdate
impl RefUnwindSafe for NodeValueUpdate
impl Send for NodeValueUpdate
impl Sync for NodeValueUpdate
impl Unpin for NodeValueUpdate
impl UnsafeUnpin for NodeValueUpdate
impl UnwindSafe for NodeValueUpdate
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