pub struct Options { /* private fields */ }Expand description
Options controlling camelcase_keys_with.
Implementations§
Source§impl Options
impl Options
Sourcepub fn pascal_case(self, value: bool) -> Self
pub fn pascal_case(self, value: bool) -> Self
Produce PascalCase keys instead of camelCase.
Sourcepub fn preserve_consecutive_uppercase(self, value: bool) -> Self
pub fn preserve_consecutive_uppercase(self, value: bool) -> Self
Preserve consecutive uppercase letters (HTTP_status → HTTPStatus).
Sourcepub fn exclude<I, S>(self, keys: I) -> Self
pub fn exclude<I, S>(self, keys: I) -> Self
Keys to leave untouched (compared against the original key).
Sourcepub fn stop_paths<I, S>(self, paths: I) -> Self
pub fn stop_paths<I, S>(self, paths: I) -> Self
Dot-paths (built from the original keys) at which to stop recursing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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