[][src]Struct opcua_server::prelude::byte_string::ByteString

pub struct ByteString {
    pub value: Option<Vec<u8>>,
}

A sequence of octets.

Fields

value: Option<Vec<u8>>

Methods

impl ByteString[src]

pub fn null() -> ByteString[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

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

Test if the string is null or empty

pub fn from_base64(data: &str) -> Option<ByteString>[src]

Creates a byte string from a Base64 encoded string

pub fn as_base64(&self) -> String[src]

Encodes the bytestring as a Base64 encoded string

pub fn random(number_of_bytes: usize) -> ByteString[src]

Create a byte string with a number of random characters. Can be used to create a nonce or a similar reason.

Trait Implementations

impl Into<ByteString> for Thumbprint[src]

impl BinaryEncoder<ByteString> for ByteString[src]

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

impl Clone for ByteString[src]

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

Performs copy-assignment from source. Read more

impl Eq for ByteString[src]

impl Serialize for ByteString[src]

impl Default for ByteString[src]

impl Hash for ByteString[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<[u8]> for ByteString[src]

impl<'a, T> From<&'a T> for ByteString where
    T: AsRef<[u8]> + ?Sized
[src]

impl From<Vec<u8>> for ByteString[src]

impl From<ByteString> for Variant[src]

impl From<ByteString> for Identifier[src]

impl Into<String> for ByteString[src]

impl PartialEq<ByteString> for ByteString[src]

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

impl Debug for ByteString[src]

Auto Trait Implementations

impl Send for ByteString

impl Sync for ByteString

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, 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