#[non_exhaustive]pub struct HostSource {
pub scheme: Option<String>,
pub host: HostPart,
pub port: Option<PortPart>,
pub path: Option<String>,
}Expand description
A parsed host-source (CSP3 §2.3.1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scheme: Option<String>The scheme-part before ://, if present.
host: HostPartThe host-part.
port: Option<PortPart>The port-part, if present.
path: Option<String>The raw path-part, if present, including its leading /.
Trait Implementations§
Source§impl Clone for HostSource
impl Clone for HostSource
Source§fn clone(&self) -> HostSource
fn clone(&self) -> HostSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostSource
impl Debug for HostSource
impl Eq for HostSource
Source§impl PartialEq for HostSource
impl PartialEq for HostSource
impl StructuralPartialEq for HostSource
Auto Trait Implementations§
impl Freeze for HostSource
impl RefUnwindSafe for HostSource
impl Send for HostSource
impl Sync for HostSource
impl Unpin for HostSource
impl UnsafeUnpin for HostSource
impl UnwindSafe for HostSource
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