pub enum SipGeolocationRef {
Cid(String),
Url(String),
}Expand description
A reference extracted from a SIP Geolocation header (RFC 6442).
Each entry is either a cid: reference to a MIME body part
(typically containing PIDF-LO XML) or a URL for location dereference.
This crate only parses the header references themselves. Resolving
cid: references against the SIP message body (multipart MIME) or
dereferencing HTTP URLs is the caller’s responsibility.
Variants§
Cid(String)
Content-ID reference to a MIME body part (e.g., cid:uuid).
Url(String)
HTTP(S) or other URL for location dereference.
Trait Implementations§
Source§impl Clone for SipGeolocationRef
impl Clone for SipGeolocationRef
Source§fn clone(&self) -> SipGeolocationRef
fn clone(&self) -> SipGeolocationRef
Returns a duplicate of the value. Read more
1.0.0 · 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 SipGeolocationRef
impl Debug for SipGeolocationRef
Source§impl Display for SipGeolocationRef
impl Display for SipGeolocationRef
Source§impl PartialEq for SipGeolocationRef
impl PartialEq for SipGeolocationRef
impl Eq for SipGeolocationRef
impl StructuralPartialEq for SipGeolocationRef
Auto Trait Implementations§
impl Freeze for SipGeolocationRef
impl RefUnwindSafe for SipGeolocationRef
impl Send for SipGeolocationRef
impl Sync for SipGeolocationRef
impl Unpin for SipGeolocationRef
impl UnsafeUnpin for SipGeolocationRef
impl UnwindSafe for SipGeolocationRef
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.