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 str
version: i32
method: Rule
id: 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
sourceimpl<'a> ShioriRequest<'a>
impl<'a> ShioriRequest<'a>
pub fn parse(text: &'a str) -> ShioriResult<ShioriRequest<'a>>
Trait Implementations
sourceimpl<'a> Debug for ShioriRequest<'a>
impl<'a> Debug for ShioriRequest<'a>
sourceimpl<'a> PartialEq<ShioriRequest<'a>> for ShioriRequest<'a>
impl<'a> PartialEq<ShioriRequest<'a>> for ShioriRequest<'a>
sourcefn eq(&self, other: &ShioriRequest<'a>) -> bool
fn eq(&self, other: &ShioriRequest<'a>) -> bool
impl<'a> Eq for ShioriRequest<'a>
impl<'a> StructuralEq for ShioriRequest<'a>
impl<'a> StructuralPartialEq for ShioriRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ShioriRequest<'a>
impl<'a> Send for ShioriRequest<'a>
impl<'a> Sync for ShioriRequest<'a>
impl<'a> Unpin for ShioriRequest<'a>
impl<'a> UnwindSafe for ShioriRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more