pub struct MimeParams {
pub value: String,
pub parameters: BTreeMap<String, String>,
}
Expand description
A fully-decoded representation of the underlying MimeParameters value, to make it more convenient to inspect from lua
Fields§
§value: String
§parameters: BTreeMap<String, String>
Trait Implementations§
Source§impl Clone for MimeParams
impl Clone for MimeParams
Source§fn clone(&self) -> MimeParams
fn clone(&self) -> MimeParams
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 moreSource§impl<'de> Deserialize<'de> for MimeParams
impl<'de> Deserialize<'de> for MimeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MimeParameters> for MimeParams
impl From<MimeParameters> for MimeParams
Source§fn from(params: MimeParameters) -> MimeParams
fn from(params: MimeParameters) -> MimeParams
Converts to this type from the input type.
Source§impl From<MimeParams> for MimeParameters
impl From<MimeParams> for MimeParameters
Source§fn from(params: MimeParams) -> MimeParameters
fn from(params: MimeParams) -> MimeParameters
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MimeParams
impl RefUnwindSafe for MimeParams
impl Send for MimeParams
impl Sync for MimeParams
impl Unpin for MimeParams
impl UnwindSafe for MimeParams
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more