Struct ContentDisposition
pub struct ContentDisposition(/* private fields */);Expand description
Lightweight Content-Disposition header wrapper.
Implementations§
§impl ContentDisposition
impl ContentDisposition
pub fn new(
value: impl AsRef<str>,
) -> Result<ContentDisposition, HeaderParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<ContentDisposition, HeaderParseError>
Creates a typed header wrapper.
pub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
pub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
§impl Clone for ContentDisposition
impl Clone for ContentDisposition
§fn clone(&self) -> ContentDisposition
fn clone(&self) -> ContentDisposition
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 more§impl Debug for ContentDisposition
impl Debug for ContentDisposition
§impl Display for ContentDisposition
impl Display for ContentDisposition
§impl Hash for ContentDisposition
impl Hash for ContentDisposition
§impl Ord for ContentDisposition
impl Ord for ContentDisposition
§fn cmp(&self, other: &ContentDisposition) -> Ordering
fn cmp(&self, other: &ContentDisposition) -> Ordering
1.21.0 · 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
§impl PartialEq for ContentDisposition
impl PartialEq for ContentDisposition
§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