[−][src]Struct opcua_server::prelude::byte_string::ByteString
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]
fn into(self) -> ByteString[src]
impl BinaryEncoder<ByteString> for ByteString[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<ByteString, StatusCode> where
S: Read, [src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<ByteString, StatusCode> where
S: Read,
fn to_vec(&self) -> Vec<u8>[src]
impl Clone for ByteString[src]
fn clone(&self) -> 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]
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 Default for ByteString[src]
fn default() -> ByteString[src]
impl Hash for ByteString[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<[u8]> for ByteString[src]
impl<'a, T> From<&'a T> for ByteString where
T: AsRef<[u8]> + ?Sized, [src]
T: AsRef<[u8]> + ?Sized,
fn from(value: &'a T) -> ByteString[src]
impl From<Vec<u8>> for ByteString[src]
fn from(value: Vec<u8>) -> ByteString[src]
impl From<ByteString> for Variant[src]
fn from(v: ByteString) -> Variant[src]
impl From<ByteString> for Identifier[src]
fn from(v: ByteString) -> Identifier[src]
impl Into<String> for ByteString[src]
impl PartialEq<ByteString> for ByteString[src]
fn eq(&self, other: &ByteString) -> bool[src]
fn ne(&self, other: &ByteString) -> bool[src]
impl<'de> Deserialize<'de> for ByteString[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ByteString, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<ByteString, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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]
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, 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>,