pub struct DeserializerConfigBuilder { /* private fields */ }Expand description
Builds a DeserializerConfig.
The methods have the names of the setters of DeserializerConfig (without set_).
Implementations§
Source§impl DeserializerConfigBuilder
impl DeserializerConfigBuilder
Sourcepub const fn new() -> DeserializerConfigBuilder
pub const fn new() -> DeserializerConfigBuilder
Creates a builder that starts with the default.
Sourcepub const fn attribute_prefix(
self,
prefix: &'static str,
) -> DeserializerConfigBuilder
pub const fn attribute_prefix( self, prefix: &'static str, ) -> DeserializerConfigBuilder
Sets the prefix of the keys of attributes.
Sourcepub const fn text_key(self, key: &'static str) -> DeserializerConfigBuilder
pub const fn text_key(self, key: &'static str) -> DeserializerConfigBuilder
Sets the key of the text of elements that are maps.
Sourcepub const fn resolve_namespaces(self, yes: bool) -> DeserializerConfigBuilder
pub const fn resolve_namespaces(self, yes: bool) -> DeserializerConfigBuilder
Enables or disables resolving namespaces.
Sourcepub fn context(self, context: Context) -> DeserializerConfigBuilder
pub fn context(self, context: Context) -> DeserializerConfigBuilder
Sets the context the values are deserialized in.
Sourcepub const fn build(self) -> DeserializerConfig
pub const fn build(self) -> DeserializerConfig
Returns the built DeserializerConfig.
Trait Implementations§
Source§impl Clone for DeserializerConfigBuilder
impl Clone for DeserializerConfigBuilder
Source§impl Debug for DeserializerConfigBuilder
impl Debug for DeserializerConfigBuilder
Source§impl Default for DeserializerConfigBuilder
impl Default for DeserializerConfigBuilder
Source§fn default() -> DeserializerConfigBuilder
fn default() -> DeserializerConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeserializerConfigBuilder
impl RefUnwindSafe for DeserializerConfigBuilder
impl Send for DeserializerConfigBuilder
impl Sync for DeserializerConfigBuilder
impl Unpin for DeserializerConfigBuilder
impl UnsafeUnpin for DeserializerConfigBuilder
impl UnwindSafe for DeserializerConfigBuilder
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