Struct opcua_types::basic_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[src]
fn null() -> LocalizedText[src]
Trait Implementations
impl PartialEq for LocalizedText[src]
fn eq(&self, __arg_0: &LocalizedText) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LocalizedText) -> bool[src]
This method tests for !=.
impl Debug for LocalizedText[src]
impl Clone for LocalizedText[src]
fn clone(&self) -> LocalizedText[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for LocalizedText[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl BinaryEncoder<LocalizedText> for LocalizedText[src]
fn byte_len(&self) -> usize[src]
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>[src]
Encodes the instance to the write stream.
fn decode<S: Read>(stream: &mut S) -> EncodingResult<Self>[src]
Decodes an instance from the read stream.