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
Explicit __expr
escape; see notes on JSONValue::ExprEscape.
Deprecated since the 1.2 release; use
{ "__extn": { "fn": "...", "arg": "..." } }
instead.
Fields
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§impl Serialize for ExtnValueJSON
impl Serialize for ExtnValueJSON
impl Eq for ExtnValueJSON
impl StructuralPartialEq for ExtnValueJSON
Auto Trait Implementations§
impl Freeze for ExtnValueJSON
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more