Struct Parts

pub struct Parts { pub scheme: Option<Scheme>, pub authority: Option<Authority>, pub path_and_query: Option<PathAndQuery>, /* private fields */ }

The various parts of a URI.

This struct is used to provide to and retrieve from a URI.

Fields

scheme: Option<Scheme>

The scheme component of a URI

authority: Option<Authority>

The authority component of a URI

path_and_query: Option<PathAndQuery>

The origin-form component of a URI

Trait Implementations

impl Debug for Parts

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Parts

fn default() -> Self

impl From<Uri> for Parts

fn from(src: Uri) -> Self

Auto Trait Implementations

impl !Freeze for Parts

impl RefUnwindSafe for Parts

impl Send for Parts

impl Sync for Parts

impl Unpin for Parts

impl UnsafeUnpin for Parts

impl UnwindSafe for Parts

Blanket Implementations

impl<T> Any for Parts where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Parts where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Parts where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Parts

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Parts where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Parts where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Parts where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>