Struct liquid_json::LiquidJsonValue
source · pub struct LiquidJsonValue(/* private fields */);
Expand description
A Liquid JSON value that implements Serialize/Deserialize.
Implementations§
source§impl LiquidJsonValue
impl LiquidJsonValue
sourcepub fn render(&self, data: &Value) -> Result<Value, Error>
pub fn render(&self, data: &Value) -> Result<Value, Error>
Render the JSON template with the given data.
sourcepub fn inner(&self) -> &LiquidJson
pub fn inner(&self) -> &LiquidJson
Get the inner LiquidJson value.
sourcepub fn as_json(&self) -> &Value
pub fn as_json(&self) -> &Value
Get the unrendered template as a serde_json::Value.
Trait Implementations§
source§impl Clone for LiquidJsonValue
impl Clone for LiquidJsonValue
source§fn clone(&self) -> LiquidJsonValue
fn clone(&self) -> LiquidJsonValue
Returns a copy 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 moresource§impl Debug for LiquidJsonValue
impl Debug for LiquidJsonValue
source§impl<'de> Deserialize<'de> for LiquidJsonValue
impl<'de> Deserialize<'de> for LiquidJsonValue
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 From<Value> for LiquidJsonValue
impl From<Value> for LiquidJsonValue
source§impl PartialEq<LiquidJsonValue> for LiquidJsonValue
impl PartialEq<LiquidJsonValue> for LiquidJsonValue
source§fn eq(&self, other: &LiquidJsonValue) -> bool
fn eq(&self, other: &LiquidJsonValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LiquidJsonValue
impl Serialize for LiquidJsonValue
impl StructuralPartialEq for LiquidJsonValue
Auto Trait Implementations§
impl RefUnwindSafe for LiquidJsonValue
impl Send for LiquidJsonValue
impl Sync for LiquidJsonValue
impl Unpin for LiquidJsonValue
impl UnwindSafe for LiquidJsonValue
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