pub struct NuValidator {
    pub validator_uri: String,
    /* private fields */
}

Fields§

§validator_uri: String

Implementations§

Examples

use std::default::Default;
use w3c_validators::NuValidator;
let nu = NuValidator::new(Default::default());
match nu.validate_text("<!DOCTYPE html><html lang=en></html>") {
    Some(result) => {
        if !result.is_valid() {
            for msg in result.messages {
                println!("{}: {}", msg._type, msg.message);
            }
        }
    }
    None => {},
}

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.