pub enum PresetStyle {
SquareBrackets,
CommonJs,
PostgresJson,
}
Expand description
Included preset stylings
Variants§
SquareBrackets
This yields a path that looks like: ["some_key"][123]
The Iterator also yields only non-object and non-array values with this style
CommonJs
This yields a path that looks like: .some_key[123]
The Iterator also yields only non-object and non-array values with this style
PostgresJson
This yields a path that looks like: ->'some_key'->123
The Iterator also yields only non-object and non-array values with this style
Trait Implementations§
Source§impl<'a> From<PresetStyle> for Style<'a>
impl<'a> From<PresetStyle> for Style<'a>
Source§fn from(style: PresetStyle) -> Style<'a>
fn from(style: PresetStyle) -> Style<'a>
Converts to this type from the input type.
Source§impl<'a> From<PresetStyle> for StyleBuilder<'a>
impl<'a> From<PresetStyle> for StyleBuilder<'a>
Source§fn from(style: PresetStyle) -> StyleBuilder<'a>
fn from(style: PresetStyle) -> StyleBuilder<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PresetStyle
impl RefUnwindSafe for PresetStyle
impl Send for PresetStyle
impl Sync for PresetStyle
impl Unpin for PresetStyle
impl UnwindSafe for PresetStyle
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