pub struct FieldMetaData {
pub name: UAString,
pub description: LocalizedText,
pub field_flags: DataSetFieldFlags,
pub built_in_type: u8,
pub data_type: NodeId,
pub value_rank: i32,
pub array_dimensions: Option<Vec<u32>>,
pub max_string_length: u32,
pub data_set_field_id: Guid,
pub properties: Option<Vec<KeyValuePair>>,
}Fields§
§name: UAString§description: LocalizedText§field_flags: DataSetFieldFlags§built_in_type: u8§data_type: NodeId§value_rank: i32§array_dimensions: Option<Vec<u32>>§max_string_length: u32§data_set_field_id: Guid§properties: Option<Vec<KeyValuePair>>Trait Implementations§
Source§impl BinaryEncoder<FieldMetaData> for FieldMetaData
impl BinaryEncoder<FieldMetaData> for FieldMetaData
Source§fn byte_len(&self) -> usize
fn byte_len(&self) -> usize
Returns the exact byte length of the structure as it would be if
encode were called.
This may be called prior to writing to ensure the correct amount of space is available.Source§fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>
fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>
Encodes the instance to the write stream.
Source§fn decode<S: Read>(
stream: &mut S,
decoding_options: &DecodingOptions,
) -> EncodingResult<Self>
fn decode<S: Read>( stream: &mut S, decoding_options: &DecodingOptions, ) -> EncodingResult<Self>
Decodes an instance from the read stream. The decoding options contains restrictions set by
the server / client on the length of strings, arrays etc. If these limits are exceeded the
implementation should return with a
BadDecodingError as soon as possible.fn encode_to_vec(&self) -> Vec<u8> ⓘ
Source§impl Clone for FieldMetaData
impl Clone for FieldMetaData
Source§fn clone(&self) -> FieldMetaData
fn clone(&self) -> FieldMetaData
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 FieldMetaData
impl Debug for FieldMetaData
Source§impl<'de> Deserialize<'de> for FieldMetaData
impl<'de> Deserialize<'de> for FieldMetaData
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 MessageInfo for FieldMetaData
impl MessageInfo for FieldMetaData
Source§impl PartialEq for FieldMetaData
impl PartialEq for FieldMetaData
Source§fn eq(&self, other: &FieldMetaData) -> bool
fn eq(&self, other: &FieldMetaData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldMetaData
impl Serialize for FieldMetaData
impl StructuralPartialEq for FieldMetaData
Auto Trait Implementations§
impl Freeze for FieldMetaData
impl RefUnwindSafe for FieldMetaData
impl Send for FieldMetaData
impl Sync for FieldMetaData
impl Unpin for FieldMetaData
impl UnsafeUnpin for FieldMetaData
impl UnwindSafe for FieldMetaData
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