Struct shiori3::ShioriRequest

source ·
pub struct ShioriRequest<'a> {
    pub text: &'a str,
    pub version: i32,
    pub method: Rule,
    pub id: Option<&'a str>,
    pub sender: Option<&'a str>,
    pub security_level: Option<&'a str>,
    pub charset: Option<&'a str>,
    pub status: Option<&'a str>,
    pub base_id: Option<&'a str>,
    pub reference: Vec<(i32, &'a str)>,
    pub dic: HashMap<String, &'a str>,
    pub key_values: Vec<(Rule, &'a str, &'a str)>,
}
Expand description

SHIORI3リクエストの解析結果を格納します。

Fields

text: &'a strversion: i32method: Ruleid: Option<&'a str>sender: Option<&'a str>security_level: Option<&'a str>charset: Option<&'a str>status: Option<&'a str>base_id: Option<&'a str>reference: Vec<(i32, &'a str)>dic: HashMap<String, &'a str>key_values: Vec<(Rule, &'a str, &'a str)>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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.