Struct strs_tools::parse::Request
source · [−]pub struct Request<'a> {
pub original: &'a str,
pub key_val_delimeter: &'a str,
pub commands_delimeter: &'a str,
pub subject: String,
pub subjects: Vec<String>,
pub map: HashMap<String, OpType<String>>,
pub maps: Vec<HashMap<String, OpType<String>>>,
}
Expand description
Parsed request data.
Fields
original: &'a str
Original request string.
key_val_delimeter: &'a str
Delimeter for pairs key:value
.
commands_delimeter: &'a str
Delimeter for commands.
subject: String
Parsed subject of first command.
subjects: Vec<String>
All subjects of the commands in request.
map: HashMap<String, OpType<String>>
Options map of first command.
maps: Vec<HashMap<String, OpType<String>>>
All options maps of the commands in request.
Trait Implementations
impl<'a> StructuralPartialEq for Request<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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