[][src]Struct qt_core::q_json_document::DataValidation

#[repr(transparent)]
pub struct DataValidation(_);

This value is used to tell QJsonDocument whether to validate the binary data when converting to a QJsonDocument using fromBinaryData() or fromRawData().

C++ enum: QJsonDocument::DataValidation.

C++ documentation:

This value is used to tell QJsonDocument whether to validate the binary data when converting to a QJsonDocument using fromBinaryData() or fromRawData().

Methods

impl DataValidation[src]

pub fn to_int(&self) -> c_int[src]

impl DataValidation[src]

pub const Validate: DataValidation[src]

Validate the data before using it. This is the default. (C++ enum variant: Validate = 0)

pub const BypassValidation: DataValidation[src]

Bypasses data validation. Only use if you received the data from a trusted place and know it's valid, as using of invalid data can crash the application. (C++ enum variant: BypassValidation = 1)

Trait Implementations

impl Clone for DataValidation[src]

impl Copy for DataValidation[src]

impl Debug for DataValidation[src]

impl Eq for DataValidation[src]

impl From<DataValidation> for c_int[src]

impl From<i32> for DataValidation[src]

impl PartialEq<DataValidation> for DataValidation[src]

impl StructuralEq for DataValidation[src]

impl StructuralPartialEq for DataValidation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.