pub struct EncodeConfig { /* private fields */ }Expand description
Runtime encoder configuration passed to encoder factories.
Implementations§
Source§impl EncodeConfig
impl EncodeConfig
Sourcepub const fn new() -> EncodeConfig
pub const fn new() -> EncodeConfig
Creates an empty encode configuration.
Sourcepub fn with_option(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> EncodeConfig
pub fn with_option( self, key: impl Into<String>, value: impl Into<String>, ) -> EncodeConfig
Adds or replaces an arbitrary string option.
Trait Implementations§
Source§impl Clone for EncodeConfig
impl Clone for EncodeConfig
Source§fn clone(&self) -> EncodeConfig
fn clone(&self) -> EncodeConfig
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 EncodeConfig
impl Debug for EncodeConfig
Source§impl Default for EncodeConfig
impl Default for EncodeConfig
Source§fn default() -> EncodeConfig
fn default() -> EncodeConfig
Returns the “default value” for a type. Read more
impl Eq for EncodeConfig
Source§impl PartialEq for EncodeConfig
impl PartialEq for EncodeConfig
impl StructuralPartialEq for EncodeConfig
Auto Trait Implementations§
impl Freeze for EncodeConfig
impl RefUnwindSafe for EncodeConfig
impl Send for EncodeConfig
impl Sync for EncodeConfig
impl Unpin for EncodeConfig
impl UnsafeUnpin for EncodeConfig
impl UnwindSafe for EncodeConfig
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.