pub struct ParseConfig {
pub source: Template,
pub target: PathTemplate<DataRoot>,
}Expand description
Configuration for parse functions.
Fields§
§source: TemplateSource location to read from — "payload", "payload.<path>",
"data.<path>", or a bare context path.
JSONLogic, so the location can be computed:
{"cat": ["data.batches.", {"var": "temp_data.i"}]}. It resolves to the
name of a location, never to the value at one — payload is not in
the JSONLogic evaluation context, so an expression could not read it
even if it tried. Read it through Self::resolve_source.
target: PathTemplate<DataRoot>Target field name in data (stored at data.{target}).
JSONLogic. A literal folds at compile time and keeps the precomputed split this always had.
Implementations§
Trait Implementations§
Source§impl Clone for ParseConfig
impl Clone for ParseConfig
Source§fn clone(&self) -> ParseConfig
fn clone(&self) -> ParseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseConfig
impl Debug for ParseConfig
Source§impl Default for ParseConfig
impl Default for ParseConfig
Source§fn default() -> ParseConfig
fn default() -> ParseConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParseConfig
impl<'de> Deserialize<'de> for ParseConfig
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
Auto Trait Implementations§
impl Freeze for ParseConfig
impl RefUnwindSafe for ParseConfig
impl Send for ParseConfig
impl Sync for ParseConfig
impl Unpin for ParseConfig
impl UnsafeUnpin for ParseConfig
impl UnwindSafe for ParseConfig
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