[−][src]Struct opcua_server::prelude::ByteString
A sequence of octets.
Fields
value: Option<Vec<u8>>Implementations
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_empty(&self) -> bool[src]
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 substring(&self, min: usize, max: usize) -> Result<ByteString, ()>[src]
This function is meant for use with NumericRange. It creates a substring from this string from min up to and inclusive of max. Note that min must have an index within the string but max is allowed to be beyond the end in which case the remainder of the string is returned (see docs for NumericRange).
Trait Implementations
impl AsRef<[u8]> for 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 encode_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]
impl Debug for ByteString[src]
impl Default for ByteString[src]
fn default() -> ByteString[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 Eq 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<ByteString> for DataValue[src]
fn from(v: ByteString) -> DataValue[src]
impl From<ByteString> for Identifier[src]
fn from(v: ByteString) -> Identifier[src]
impl From<ByteString> for Variant[src]
fn from(v: ByteString) -> Variant[src]
impl From<Guid> for ByteString[src]
fn from(value: Guid) -> ByteString[src]
impl From<Vec<u8>> for ByteString[src]
fn from(value: Vec<u8>) -> 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,
impl Into<ByteString> for Thumbprint[src]
fn into(self) -> ByteString[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 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 StructuralEq for ByteString[src]
impl StructuralPartialEq for ByteString[src]
impl<'_> TryFrom<&'_ ByteString> for Guid[src]
Auto Trait Implementations
impl RefUnwindSafe for ByteString
impl Send for ByteString
impl Sync for ByteString
impl Unpin for ByteString
impl UnwindSafe for ByteString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> 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, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,