[−][src]Struct opcua_server::prelude::string::UAString
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 byte_len(&self) -> usize[src]
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write, [src]
S: Write,
fn decode<S>(
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<UAString, StatusCode> where
S: Read, [src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<UAString, StatusCode> where
S: Read,
fn to_vec(&self) -> Vec<u8>[src]
impl Clone for UAString[src]
fn clone(&self) -> 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]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Display for UAString[src]
impl Default for UAString[src]
impl Hash for UAString[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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]
fn from(v: UAString) -> Identifier[src]
impl PartialEq<UAString> for UAString[src]
impl<'de> Deserialize<'de> for UAString[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<UAString, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<UAString, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Debug for UAString[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,