#[non_exhaustive]pub struct NameAddr { /* private fields */ }๐Deprecated since 0.2.0:
name-addr is header-level grammar; use sip_header::SipHeaderAddr or parse the URI with sip_uri::Uri directly
Expand description
A SIP name-addr: optional display name with a URI.
Parses the following forms:
"Display Name" <sip:user@host><sip:user@host>sip:user@host(bare URI, no display name)
Deprecated since 0.2.0, will be removed in 0.3.0.
The name-addr production (RFC 3261 ยง25.1) appears inside SIP header
fields like From, To, Contact, and Refer-To, where it is
followed by header-level parameters (;tag=, ;expires=, etc.).
This type rejects those parameters, so it cannot round-trip real SIP
header values.
ยงMigration
- Full SIP header parsing: use
SipHeaderAddrfrom thesip-headercrate, which handles display names, URIs, and header-level parameters. - URI only: parse directly with
Uri.
Implementationsยง
Trait Implementationsยง
impl Eq for NameAddr
impl StructuralPartialEq for NameAddr
Auto Trait Implementationsยง
impl Freeze for NameAddr
impl RefUnwindSafe for NameAddr
impl Send for NameAddr
impl Sync for NameAddr
impl Unpin for NameAddr
impl UnsafeUnpin for NameAddr
impl UnwindSafe for NameAddr
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