[][src]Struct languagetool::Request

pub struct Request {
    pub text: String,
    pub language: String,
    pub mother_tongue: Option<String>,
    pub preferred_variants: Option<String>,
    pub enabled_rules: Option<String>,
    pub disabled_rules: Option<String>,
    pub enabled_categories: Option<String>,
    pub disabled_categories: Option<String>,
    pub enabled_only: Option<bool>,
}

Fields

text: Stringlanguage: Stringmother_tongue: Option<String>preferred_variants: Option<String>enabled_rules: Option<String>disabled_rules: Option<String>enabled_categories: Option<String>disabled_categories: Option<String>enabled_only: Option<bool>

Methods

impl Request[src]

pub fn new(text: String, language: String) -> Self[src]

Trait Implementations

impl Debug for Request[src]

impl Serialize for Request[src]

Auto Trait Implementations

impl Sync for Request

impl Send for Request

impl Unpin for Request

impl RefUnwindSafe for Request

impl UnwindSafe for Request

Blanket Implementations

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

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

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.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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