pub struct Interpolated { /* private fields */ }Expand description
A document of var holes in otherwise literal data, $ keys kept
verbatim. It is for payloads such as a MongoDB filter, where $oid is data
and {"var": ...} is the only live part.
Any other operator-shaped node, val included, stays data and is reported
as OPERATOR_IN_DOCUMENT; a secret node is refused as
SECRET_IN_DOCUMENT. A hole’s default is data too, and is checked the same
way.
Implementations§
Trait Implementations§
Source§impl ConfigField for Interpolated
impl ConfigField for Interpolated
Source§const NULL_IS_VALUE: bool = true
const NULL_IS_VALUE: bool = true
null is a document with no hole.
Source§fn resolve(&self, r: &mut dyn Resolver) -> Result<Option<OwnedDataValue>>
fn resolve(&self, r: &mut dyn Resolver) -> Result<Option<OwnedDataValue>>
The document rendered for this call.
Source§fn compile(raw: &Value, cx: &mut CompileCx<'_>) -> Option<Self>
fn compile(raw: &Value, cx: &mut CompileCx<'_>) -> Option<Self>
Compiles
raw; None after recording at least one issue.Source§const IS_OUTPUT: bool = false
const IS_OUTPUT: bool = false
Whether the field is an output: a destination its call writes to.
false unless the type is Output or an
Option of one. The derive reads a field typed Output or marked
#[output] as an output and asserts that this is true, so a type
that merely shares the name is refused at compile time.Auto Trait Implementations§
impl Freeze for Interpolated
impl RefUnwindSafe for Interpolated
impl Send for Interpolated
impl Sync for Interpolated
impl Unpin for Interpolated
impl UnsafeUnpin for Interpolated
impl UnwindSafe for Interpolated
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