pub struct Uri {
pub scheme: Option<Scheme>,
pub auth: Option<Auth>,
pub host_with_port: HostWithPort,
pub params: Vec<Param>,
pub headers: Vec<(String, String)>,
}Fields§
§scheme: Option<Scheme>§auth: Option<Auth>§host_with_port: HostWithPort§params: Vec<Param>§headers: Vec<(String, String)>Implementations§
Trait Implementations§
impl Eq for Uri
Source§impl From<HostWithPort> for Uri
impl From<HostWithPort> for Uri
Source§fn from(hwp: HostWithPort) -> Self
fn from(hwp: HostWithPort) -> Self
Converts to this type from the input type.
Source§impl From<Uri> for RecordRoute
impl From<Uri> for RecordRoute
Source§impl ParamsExt for Uri
impl ParamsExt for Uri
fn params(&self) -> &[Param]
fn params_mut(&mut self) -> &mut Vec<Param>
fn tag(&self) -> Option<&str>
fn branch(&self) -> Option<&str>
fn transport(&self) -> Option<&Transport>
fn received(&self) -> Option<&str>
fn rport(&self) -> Option<Option<u16>>
fn has_lr(&self) -> bool
fn expires(&self) -> Option<&str>
fn q(&self) -> Option<&str>
fn other_param(&self, name: &str) -> Option<&str>
fn set_tag(&mut self, tag: impl Into<String>)
fn set_branch(&mut self, branch: impl Into<String>)
fn set_transport(&mut self, t: Transport)
fn set_rport(&mut self, port: Option<u16>)
fn set_expires(&mut self, value: impl Into<String>)
fn set_other_param(&mut self, name: &str, value: Option<&str>)
fn remove_tag(&mut self)
fn remove_branch(&mut self)
fn remove_transport(&mut self)
fn remove_rport(&mut self)
fn remove_lr(&mut self)
fn remove_param(&mut self, name: &str)
fn pop_tag(&mut self) -> Option<String>
fn pop_branch(&mut self) -> Option<String>
impl StructuralPartialEq for Uri
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnsafeUnpin for Uri
impl UnwindSafe for Uri
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more