Struct opcua_types::LocalizedText
[−]
[src]
pub struct LocalizedText { pub locale: UAString, pub text: UAString, }
Human readable text with an optional locale identifier Data type ID 21
Fields
locale: UAString
The locale. Omitted from stream if null or empty
text: UAString
The text in the specified locale. Omitted frmo stream if null or empty.
Methods
impl LocalizedText
[src]
fn new(locale: &str, text: &str) -> LocalizedText
fn null() -> LocalizedText
Trait Implementations
impl PartialEq for LocalizedText
[src]
fn eq(&self, __arg_0: &LocalizedText) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LocalizedText) -> bool
This method tests for !=
.
impl Debug for LocalizedText
[src]
impl Clone for LocalizedText
[src]
fn clone(&self) -> LocalizedText
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl BinaryEncoder<LocalizedText> for LocalizedText
[src]
fn byte_len(&self) -> usize
Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more
fn encode<S: Write>(&self, stream: &mut S) -> EncodingResult<usize>
Encodes the instance to the write stream.
fn decode<S: Read>(stream: &mut S) -> EncodingResult<Self>
Decodes an instance from the read stream.