Struct opcua_types::UAString [] [src]

pub struct UAString {
    pub value: Option<String>,
}

A UTF-8 encoded sequence of Unicode characters.

A string can hold a null value, so the string value is optional. When there is no string, the value is treated as null

To avoid naming conflict hell, the String type is named UAString.

Data type ID 12

Fields

Methods

impl UAString
[src]

Create a string from a string slice

Returns the length of the string or -1 for null

Create a null string (not the same as an empty string)

Test if the string is null

Trait Implementations

impl Eq for UAString
[src]

impl PartialEq for UAString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for UAString
[src]

Formats the value using the given formatter.

impl Clone for UAString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for UAString
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl BinaryEncoder<UAString> for UAString
[src]

Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more

Encodes the instance to the write stream.

Decodes an instance from the read stream.

impl AsRef<str> for UAString
[src]

Performs the conversion.