pub enum Style {
BlockMapping,
BlockSequence,
MultilineFlowMapping,
FlowMapping,
MultilineFlowSequence,
FlowSequence,
MultilineLiteralScalar,
MultilineFoldedScalar,
DoubleQuoted,
SingleQuoted,
PlainScalar,
}Expand description
Represents different YAML styles for a feature.
Variants§
BlockMapping
Block style mappings
BlockSequence
Block style sequences
MultilineFlowMapping
Multiline flow mapping style:
{
key: value,
key2: value2
}FlowMapping
Single-line flow mapping style: { key: value, key2: value2 }
MultilineFlowSequence
Multiline flow sequence style:
[
item1,
item2,
]FlowSequence
Single-line flow sequence style: [ item1, item2, item3 ]
MultilineLiteralScalar
Literal scalar style: |
MultilineFoldedScalar
Folded scalar style: >
DoubleQuoted
Double quoted scalar style: “value”
SingleQuoted
Single quoted scalar style: ‘value’
PlainScalar
Plain scalar style: value
Implementations§
Trait Implementations§
impl Copy for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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