Struct opcua_types::byte_string::ByteString [] [src]

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

A sequence of octets.

Fields

Methods

impl ByteString
[src]

[src]

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

[src]

Test if the string is null

[src]

Test if the string is null or empty

[src]

Creates a byte string from a Base64 encoded string

[src]

Encodes the bytestring as a Base64 encoded string

[src]

Creates a nonce - 32 bytes of random data

[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 Eq for ByteString
[src]

impl PartialEq for ByteString
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for ByteString
[src]

[src]

Formats the value using the given formatter.

impl Clone for ByteString
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for ByteString
[src]

[src]

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

1.3.0
[src]

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

impl AsRef<[u8]> for ByteString
[src]

[src]

Performs the conversion.

impl BinaryEncoder<ByteString> for ByteString
[src]

[src]

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

[src]

Encodes the instance to the write stream.

[src]

Decodes an instance from the read stream.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl Into<String> for ByteString
[src]

[src]

Performs the conversion.

impl Default for ByteString
[src]

[src]

Returns the "default value" for a type. Read more