Enum cedar_policy_core::entities::ExtnValueJSON
source · pub enum ExtnValueJSON {
ExplicitExprEscape {
__expr: SmolStr,
},
ExplicitExtnEscape {
__extn: FnAndArg,
},
ImplicitExtnEscape(FnAndArg),
ImplicitConstructor(JSONValue),
}
Expand description
Serde JSON format for Cedar values where we know we’re expecting an extension value
Variants§
ExplicitExprEscape
Fields
Explicit __expr
escape; see notes on JSONValue::ExprEscape.
Deprecated since the 1.2 release; use
{ "__extn": { "fn": "...", "arg": "..." } }
instead.
ExplicitExtnEscape
Explicit __extn
escape; see notes on JSONValue::ExtnEscape
ImplicitExtnEscape(FnAndArg)
Implicit __extn
escape, in which case we’ll just see the FnAndArg
directly
ImplicitConstructor(JSONValue)
Implicit __extn
escape and constructor. Constructor is implicitly
selected based on the argument type and the expected type.
Trait Implementations§
source§impl Clone for ExtnValueJSON
impl Clone for ExtnValueJSON
source§fn clone(&self) -> ExtnValueJSON
fn clone(&self) -> ExtnValueJSON
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 ExtnValueJSON
impl Debug for ExtnValueJSON
source§impl<'de> Deserialize<'de> for ExtnValueJSON
impl<'de> Deserialize<'de> for ExtnValueJSON
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 ExtnValueJSON
impl PartialEq for ExtnValueJSON
source§fn eq(&self, other: &ExtnValueJSON) -> bool
fn eq(&self, other: &ExtnValueJSON) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExtnValueJSON
impl Serialize for ExtnValueJSON
impl Eq for ExtnValueJSON
impl StructuralEq for ExtnValueJSON
impl StructuralPartialEq for ExtnValueJSON
Auto Trait Implementations§
impl RefUnwindSafe for ExtnValueJSON
impl Send for ExtnValueJSON
impl Sync for ExtnValueJSON
impl Unpin for ExtnValueJSON
impl UnwindSafe for ExtnValueJSON
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