pub struct MimeParameters {
pub value: String,
/* private fields */
}
Fields§
§value: String
Implementations§
source§impl MimeParameters
impl MimeParameters
pub fn new(value: &str) -> Self
sourcepub fn get(&self, name: &str) -> Option<String>
pub fn get(&self, name: &str) -> Option<String>
Retrieve the value for a named parameter. This method will attempt to decode any %-encoded values per RFC 2231 and combine multi-element fields into a single contiguous value. Invalid charsets and encoding will be silently ignored.
pub fn set(&mut self, name: &str, value: &str)
pub fn is_multipart(&self) -> bool
pub fn is_text(&self) -> bool
Trait Implementations§
source§impl Clone for MimeParameters
impl Clone for MimeParameters
source§fn clone(&self) -> MimeParameters
fn clone(&self) -> MimeParameters
Returns a copy 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 MimeParameters
impl Debug for MimeParameters
source§impl EncodeHeaderValue for MimeParameters
impl EncodeHeaderValue for MimeParameters
fn encode_value(&self) -> SharedString<'static>
fn as_header(&self, _name: &str) -> Option<Header<'static>>
source§impl PartialEq for MimeParameters
impl PartialEq for MimeParameters
impl Eq for MimeParameters
impl StructuralPartialEq for MimeParameters
Auto Trait Implementations§
impl Freeze for MimeParameters
impl RefUnwindSafe for MimeParameters
impl Send for MimeParameters
impl Sync for MimeParameters
impl Unpin for MimeParameters
impl UnwindSafe for MimeParameters
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)