pub struct StructuredValue {
pub symbol_id: Option<i32>,
pub data: Vec<u8>,
}Expand description
User-facing wrapper for rust_ethernet_ip::UdtData.
This lets callers work with structured payloads without exposing the transport
library’s raw rust_ethernet_ip::UdtData type in the user-facing API.
Fields§
§symbol_id: Option<i32>Symbol type identifier used by rust_ethernet_ip::UdtData.
This is only needed when writing a UDT back to a PLC. Reads convert a backend
symbol_id of 0 into None.
data: Vec<u8>Raw UDT payload bytes from rust_ethernet_ip::UdtData::data.
Trait Implementations§
Source§impl Clone for StructuredValue
impl Clone for StructuredValue
Source§fn clone(&self) -> StructuredValue
fn clone(&self) -> StructuredValue
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 StructuredValue
impl Debug for StructuredValue
impl Eq for StructuredValue
Source§impl From<StructuredValue> for Value
impl From<StructuredValue> for Value
Source§fn from(value: StructuredValue) -> Self
fn from(value: StructuredValue) -> Self
Converts to this type from the input type.
Source§impl From<StructuredValue> for UdtData
impl From<StructuredValue> for UdtData
Source§fn from(value: StructuredValue) -> Self
fn from(value: StructuredValue) -> Self
Converts to this type from the input type.
Source§impl From<StructuredValue> for PlcValue
impl From<StructuredValue> for PlcValue
Source§fn from(value: StructuredValue) -> Self
fn from(value: StructuredValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StructuredValue
impl PartialEq for StructuredValue
impl StructuralPartialEq for StructuredValue
Auto Trait Implementations§
impl Freeze for StructuredValue
impl RefUnwindSafe for StructuredValue
impl Send for StructuredValue
impl Sync for StructuredValue
impl Unpin for StructuredValue
impl UnsafeUnpin for StructuredValue
impl UnwindSafe for StructuredValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.