pub struct ContentDisposition(/* private fields */);Expand description
Lightweight Content-Disposition header wrapper.
Implementations§
Source§impl ContentDisposition
impl ContentDisposition
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
Creates a typed header wrapper.
Sourcepub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
Sourcepub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
Source§impl Clone for ContentDisposition
impl Clone for ContentDisposition
Source§fn clone(&self) -> ContentDisposition
fn clone(&self) -> ContentDisposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentDisposition
impl Debug for ContentDisposition
Source§impl Display for ContentDisposition
impl Display for ContentDisposition
Source§impl Hash for ContentDisposition
impl Hash for ContentDisposition
Source§impl Ord for ContentDisposition
impl Ord for ContentDisposition
Source§fn cmp(&self, other: &ContentDisposition) -> Ordering
fn cmp(&self, other: &ContentDisposition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContentDisposition
impl PartialEq for ContentDisposition
Source§fn eq(&self, other: &ContentDisposition) -> bool
fn eq(&self, other: &ContentDisposition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContentDisposition
impl PartialOrd for ContentDisposition
impl Eq for ContentDisposition
impl StructuralPartialEq for ContentDisposition
Auto Trait Implementations§
impl Freeze for ContentDisposition
impl RefUnwindSafe for ContentDisposition
impl Send for ContentDisposition
impl Sync for ContentDisposition
impl Unpin for ContentDisposition
impl UnsafeUnpin for ContentDisposition
impl UnwindSafe for ContentDisposition
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