pub struct SipCallInfoEntry {
pub data: String,
pub metadata: Vec<(String, String)>,
}Expand description
One entry from a SIP Call-Info header: <uri>;key=value;key=value.
The data field contains the URI stripped of angle brackets. Metadata keys are stored lowercased; values are preserved as-is.
Fields§
§data: StringThe URI or data inside the angle brackets, with brackets stripped.
metadata: Vec<(String, String)>Semicolon-delimited parameters as (key, value) pairs.
Keys are lowercased at parse time; values are preserved as-is.
A key with no = sign is stored with an empty string value.
Implementations§
Trait Implementations§
Source§impl Clone for SipCallInfoEntry
impl Clone for SipCallInfoEntry
Source§fn clone(&self) -> SipCallInfoEntry
fn clone(&self) -> SipCallInfoEntry
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 SipCallInfoEntry
impl Debug for SipCallInfoEntry
Source§impl Display for SipCallInfoEntry
impl Display for SipCallInfoEntry
Source§impl PartialEq for SipCallInfoEntry
impl PartialEq for SipCallInfoEntry
impl Eq for SipCallInfoEntry
impl StructuralPartialEq for SipCallInfoEntry
Auto Trait Implementations§
impl Freeze for SipCallInfoEntry
impl RefUnwindSafe for SipCallInfoEntry
impl Send for SipCallInfoEntry
impl Sync for SipCallInfoEntry
impl Unpin for SipCallInfoEntry
impl UnsafeUnpin for SipCallInfoEntry
impl UnwindSafe for SipCallInfoEntry
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.