usecrate::*;/// Represents the components of a parsed HTTP URL.
#[derive(Debug, Clone, PartialEq, Eq)]pubstructHttpUrlComponents{/// The URL scheme, such as "http" or "https".
pubprotocol: Protocol,
/// The host part of the URL (e.g., "example.com").
pubhost: OptionString,
/// The port number in the URL, if specified.
pubport: OptionU16,
/// The path in the URL (e.g., "/index.html").
pubpath: OptionString,
/// The query string in the URL (e.g., "?a=1").
pubquery: OptionString,
/// The fragment identifier (e.g., "#section").
pubfragment: OptionString,
}