[][src]Struct opcua_types::encoding::DecodingLimits

pub struct DecodingLimits {
    pub max_string_length: usize,
    pub max_byte_string_length: usize,
    pub max_array_length: usize,
}

Fields

max_string_length: usize

Maximum length in bytes (not chars!) of a string. 0 actually means 0, i.e. no string permitted

max_byte_string_length: usize

Maximum length in bytes of a byte string. 0 actually means 0, i.e. no byte string permitted

max_array_length: usize

Maximum number of array elements. 0 actually means 0, i.e. no array permitted

Methods

impl DecodingLimits[src]

pub fn minimal() -> Self[src]

This can be useful for decoding extension objects where the payload is not expected to contain any string or array.

Trait Implementations

impl Copy for DecodingLimits[src]

impl Default for DecodingLimits[src]

impl Clone for DecodingLimits[src]

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

Performs copy-assignment from source. Read more

impl Debug for DecodingLimits[src]

Auto Trait Implementations

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.