pub struct StructuredUrl {
pub raw: Option<String>,
pub protocol: Option<String>,
pub host: Option<Vec<String>>,
pub path: Option<Vec<StringOrVariable>>,
pub query: Vec<QueryParam>,
pub variable: Vec<Variable>,
}Expand description
Structured URL with host, path, query, etc.
Fields§
§raw: Option<String>Raw URL string
protocol: Option<String>URL protocol (http, https, etc.)
host: Option<Vec<String>>URL host parts
path: Option<Vec<StringOrVariable>>URL path segments
query: Vec<QueryParam>Query parameters
variable: Vec<Variable>URL variables
Trait Implementations§
Source§impl Debug for StructuredUrl
impl Debug for StructuredUrl
Source§impl<'de> Deserialize<'de> for StructuredUrl
impl<'de> Deserialize<'de> for StructuredUrl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StructuredUrl
impl RefUnwindSafe for StructuredUrl
impl Send for StructuredUrl
impl Sync for StructuredUrl
impl Unpin for StructuredUrl
impl UnsafeUnpin for StructuredUrl
impl UnwindSafe for StructuredUrl
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