pub struct OverlayEntry {
pub id: Option<String>,
pub file: Option<PathBuf>,
pub dir: Option<PathBuf>,
pub set: Option<OverlayPatch>,
pub append: Option<OverlayPatch>,
pub unknown: BTreeMap<String, Value>,
}Expand description
One overlay entry: either inline patches for an id, or a file or directory of overlay files.
Fields§
§id: Option<String>Id or name of the document an inline entry patches.
file: Option<PathBuf>Overlay file holding a list of inline entries.
dir: Option<PathBuf>Directory of overlay files, applied in sorted order.
set: Option<OverlayPatch>Keys to replace.
append: Option<OverlayPatch>Lists to extend.
unknown: BTreeMap<String, Value>Unknown keys, rejected at validation time.
Trait Implementations§
Source§impl Clone for OverlayEntry
impl Clone for OverlayEntry
Source§impl Debug for OverlayEntry
impl Debug for OverlayEntry
Source§impl Default for OverlayEntry
impl Default for OverlayEntry
Source§impl<'de> Deserialize<'de> for OverlayEntry
impl<'de> Deserialize<'de> for OverlayEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OverlayEntry
impl PartialEq for OverlayEntry
Source§impl Serialize for OverlayEntry
impl Serialize for OverlayEntry
impl StructuralPartialEq for OverlayEntry
Auto Trait Implementations§
impl Forget for OverlayEntry
impl Freeze for OverlayEntry
impl Move for OverlayEntry
impl RefUnwindSafe for OverlayEntry
impl Send for OverlayEntry
impl Sync for OverlayEntry
impl Unpin for OverlayEntry
impl UnsafeUnpin for OverlayEntry
impl UnwindSafe for OverlayEntry
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