pub struct DecomposeRule {
pub tag: String,
pub path_segment: String,
pub mode: String,
pub field: String,
}Expand description
Rule for decomposing a nested tag when using grouped-by-tag strategy. E.g. write each <objectPermissions> to its own file, or group <fieldPermissions> by object.
Fields§
§tag: StringElement tag to decompose (e.g. “objectPermissions”, “fieldPermissions”).
path_segment: StringSubdirectory under disassembled path (defaults to tag if empty).
mode: String“split” = one file per array item (filename from field); “group” = group by field, one file per group.
field: StringField name: for split, used for filename; for group, used to group items.
Trait Implementations§
Source§impl Clone for DecomposeRule
impl Clone for DecomposeRule
Source§fn clone(&self) -> DecomposeRule
fn clone(&self) -> DecomposeRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecomposeRule
impl RefUnwindSafe for DecomposeRule
impl Send for DecomposeRule
impl Sync for DecomposeRule
impl Unpin for DecomposeRule
impl UnsafeUnpin for DecomposeRule
impl UnwindSafe for DecomposeRule
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