pub struct Target {
pub target_path: String,
pub relative_path: String,
pub queries: HashMap<String, String>,
}Expand description
Represents a HTTP URL (named Target for formality reasons)
Fields§
§target_path: StringContains the path of the current handler (Empty by default. Modified by the server before being passed to a handler). Primarily used by directory handlers.
For example, if a directory handler is assigned at path \www\etc and the client attempts to access \www\etc\main.txt,
this field’s String’s contents will be \www\etc and the relative path will be equal to \main.txt
relative_path: StringCheck the target path documentation
queries: HashMap<String, String>A HashMap with a String key representing the query value and a String value representing the query value (query is defined in RFC 3986 as well)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more