Struct cedar_policy_core::ast::Unknown
source · pub struct Unknown {
pub name: SmolStr,
pub type_annotation: Option<Type>,
}
Expand description
Representation of a partial-evaluation Unknown at the AST level
Fields§
§name: SmolStr
The name of the unknown
type_annotation: Option<Type>
The type of the values that can be substituted in for the unknown.
If None
, we have no type annotation, and thus a value of any type can
be substituted.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Unknown
impl<'de> Deserialize<'de> for Unknown
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 Unknown
impl PartialEq for Unknown
impl Eq for Unknown
impl StructuralPartialEq for Unknown
Auto Trait Implementations§
impl Freeze for Unknown
impl RefUnwindSafe for Unknown
impl Send for Unknown
impl Sync for Unknown
impl Unpin for Unknown
impl UnwindSafe for Unknown
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