[−][src]Struct libsip::NamedHeader
Header Value for Named Headers, e.g. From, To, Contact
Fields
display_name: Option<String>
uri: Uri
parameters: HashMap<String, Option<String>>
Implementations
impl NamedHeader
[src]
pub fn new(uri: Uri) -> NamedHeader
[src]
pub fn name<S: Into<String>>(self, name: S) -> Self
[src]
Sets display_name
of this header
pub fn param<N, V>(self, name: N, value: Option<V>) -> Self where
N: Into<String>,
V: Into<String>,
[src]
N: Into<String>,
V: Into<String>,
Adds a parameter with a given name and a given value to params
.
If there is already a parameter with a given name, its value is changed because RFC3261: Page 31, Header Field Format defines that "any given parameter-name MUST NOT appear more than once"
pub fn set_param<N, V>(&mut self, name: N, value: Option<V>) where
N: Into<String>,
V: Into<String>,
[src]
N: Into<String>,
V: Into<String>,
Adds a parameter with a given name and a given value to params
.
If there is already a parameter with a given name, its value is changed because RFC3261: Page 31, Header Field Format defines that "any given parameter-name MUST NOT appear more than once"
Trait Implementations
impl Clone for NamedHeader
[src]
fn clone(&self) -> NamedHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NamedHeader
[src]
impl Display for NamedHeader
[src]
impl PartialEq<NamedHeader> for NamedHeader
[src]
fn eq(&self, other: &NamedHeader) -> bool
[src]
fn ne(&self, other: &NamedHeader) -> bool
[src]
impl StructuralPartialEq for NamedHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for NamedHeader
impl Send for NamedHeader
impl Sync for NamedHeader
impl Unpin for NamedHeader
impl UnwindSafe for NamedHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,