pub struct PublishConfig {
pub source: Template,
pub target: PathTemplate<DataRoot>,
pub pretty: bool,
pub root_element: Template,
}Expand description
Configuration for publish functions.
Fields§
§source: TemplateSource field path inside data to serialize, as JSONLogic. Resolves to
the name of a location, not the value at one.
target: PathTemplate<DataRoot>Target field name inside data to receive the serialised string, as
JSONLogic. A literal folds at compile time and keeps the precomputed
split this always had.
pretty: boolWhether to pretty-print the output (JSON only).
root_element: TemplateRoot element name for XML output, as JSONLogic — so the element can
follow the message type: {"var": "data.doc_type"}.
Implementations§
Trait Implementations§
Source§impl Clone for PublishConfig
impl Clone for PublishConfig
Source§fn clone(&self) -> PublishConfig
fn clone(&self) -> PublishConfig
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 PublishConfig
impl Debug for PublishConfig
Source§impl Default for PublishConfig
impl Default for PublishConfig
Source§impl<'de> Deserialize<'de> for PublishConfig
impl<'de> Deserialize<'de> for PublishConfig
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 PublishConfig
impl RefUnwindSafe for PublishConfig
impl Send for PublishConfig
impl Sync for PublishConfig
impl Unpin for PublishConfig
impl UnsafeUnpin for PublishConfig
impl UnwindSafe for PublishConfig
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