#[non_exhaustive]pub enum Uri {
Sip(SipUri),
Tel(TelUri),
Urn(UrnUri),
Other(String),
}Expand description
A parsed URI: SIP/SIPS, tel, URN, or an opaque URI with an unrecognized scheme.
The Other variant stores the raw URI string for schemes this crate does
not parse (e.g. http:, https:, data:). This allows SIP header values
like Call-Info to round-trip without rejecting non-SIP URIs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sip(SipUri)
SIP or SIPS URI.
Tel(TelUri)
tel: URI.
Urn(UrnUri)
URN (Uniform Resource Name).
Other(String)
URI with an unrecognized scheme, stored as-is.
Implementations§
Trait Implementations§
impl Eq for Uri
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