[][src]Struct opcua_server::prelude::string::UAString

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

A string containing UTF-8 encoded characters.

A string can also be 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.

Fields

value: Option<String>

Methods

impl UAString[src]

pub fn is_empty(&self) -> bool[src]

Returns true if the string is null or empty, false otherwise

pub fn len(&self) -> isize[src]

Returns the length of the string or -1 for null.

pub fn null() -> UAString[src]

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

pub fn is_null(&self) -> bool[src]

Test if the string is null.

Trait Implementations

impl BinaryEncoder<UAString> for UAString[src]

fn to_vec(&self) -> Vec<u8>[src]

impl Clone for UAString[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for UAString[src]

impl Serialize for UAString[src]

impl Display for UAString[src]

impl Default for UAString[src]

impl Hash for UAString[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

impl AsRef<str> for UAString[src]

impl<'a> From<&'a str> for UAString[src]

impl From<UAString> for Variant[src]

impl From<String> for UAString[src]

impl From<UAString> for Identifier[src]

impl PartialEq<UAString> for UAString[src]

impl<'de> Deserialize<'de> for UAString[src]

impl Debug for UAString[src]

Auto Trait Implementations

impl Send for UAString

impl Sync for UAString

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T