pub struct Contact(_);
Expand description
The Contact
header in its untyped form.
Implementations
sourceimpl Contact
impl Contact
pub fn display_name(&self) -> Result<Option<String>, Error>
pub fn uri(&self) -> Result<Uri, Error>
pub fn params(&self) -> Result<Vec<Param>, Error>
pub fn expires(&self) -> Result<Option<Expires>, Error>
pub fn with_uri(self, uri: Uri) -> Result<Self, Error>
pub fn mut_uri(&mut self, uri: Uri) -> Result<&mut Self, Error>
pub fn with_params(self, params: Vec<Param>) -> Result<Self, Error>
pub fn mut_params(&mut self, params: Vec<Param>) -> Result<&mut Self, Error>
Trait Implementations
sourceimpl<'a> ToTypedHeader<'a> for Contact
impl<'a> ToTypedHeader<'a> for Contact
sourceimpl<'a> UntypedHeader<'a> for Contact
impl<'a> UntypedHeader<'a> for Contact
impl Eq for Contact
impl StructuralEq for Contact
impl StructuralPartialEq for Contact
Auto Trait Implementations
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnwindSafe for Contact
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more