pub struct TagValue {
pub tag_id: String,
pub value: String,
pub quality: String,
pub timestamp: String,
}Expand description
A single tag’s read result.
Returned by OpcProvider::read_tag_values.
§Examples
use opc_da_client::TagValue;
let tv = TagValue {
tag_id: "Simulation.Random.1".to_string(),
value: "42.5".to_string(),
quality: "Good".to_string(),
timestamp: "2026-01-01 00:00:00".to_string(),
};
assert_eq!(tv.tag_id, "Simulation.Random.1");Fields§
§tag_id: StringThe fully qualified tag identifier (e.g., "Channel1.Device1.Tag1").
value: StringThe current value as a display string.
quality: StringOPC quality indicator (e.g., "Good", "Bad", or "Uncertain").
timestamp: StringTimestamp of the last value change, formatted as a local time string.
Trait Implementations§
impl Eq for TagValue
impl StructuralPartialEq for TagValue
Auto Trait Implementations§
impl Freeze for TagValue
impl RefUnwindSafe for TagValue
impl Send for TagValue
impl Sync for TagValue
impl Unpin for TagValue
impl UnsafeUnpin for TagValue
impl UnwindSafe for TagValue
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