pub enum Value {
Show 38 variants
Null,
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
String(String),
Iri(String),
Blank(String),
Prefixed(String, String),
Var(String),
List(Vec<Value>),
Record(BTreeMap<String, Value>),
Triple(Box<Value>, Box<Value>, Box<Value>),
Reified {
s: Box<Value>,
p: Box<Value>,
o: Box<Value>,
r: Box<Value>,
},
Receipt,
Ok(Box<Value>),
Err(Box<Value>),
Instant(Instant),
Duration(Duration),
Quantity(Quantity),
Frame(Frame),
Pose(Pose),
Transform(Transform),
FieldRef(FieldRef),
MaterialRef(MaterialRef),
TensorRef(TensorRef),
GeometryRef(GeometryRef),
AssetRef(AssetRef),
WorldLine(WorldLine),
QuinRef(QuinRef),
Enum(EnumValue),
Lambda {
params: Vec<String>,
body: Box<Expr>,
},
SpeciesRef(SpeciesRef),
Mixture(Mixture),
Conservation(ConservationResult),
Causal(CausalRelation),
DisclosureDenied {
capability: String,
reason: String,
},
DisclosureBoundary(DisclosureBoundary),
}Variants§
Null
Bool(bool)
I64(i64)
U64(u64)
F64(f64)
String(String)
Iri(String)
Blank(String)
Prefixed(String, String)
Var(String)
List(Vec<Value>)
Record(BTreeMap<String, Value>)
Triple(Box<Value>, Box<Value>, Box<Value>)
Reified
Receipt
Ok(Box<Value>)
Err(Box<Value>)
Instant(Instant)
A point in time with scale, exact secs+nanos, and optional seal (T1).
Duration(Duration)
An exact duration: secs + nanos (T2).
Quantity(Quantity)
A physical quantity with a required unit IRI (T3).
Frame(Frame)
A reference frame: origin + basis (T4).
Pose(Pose)
A pose within a frame (T4).
Transform(Transform)
A transform: translate/rotate/scale/skew (T4).
FieldRef(FieldRef)
An opaque handle to a sampled field (T5).
MaterialRef(MaterialRef)
An opaque handle to a material signature (T5).
TensorRef(TensorRef)
An opaque handle to a 10D tensor on the host (T52).
GeometryRef(GeometryRef)
An opaque handle to a geometry asset on the host (T52).
AssetRef(AssetRef)
An opaque handle to a digital asset on the host (T52).
WorldLine(WorldLine)
A worldline: continuant through Instant × Pose (T6).
QuinRef(QuinRef)
An opaque 48-byte handle to a Super-Quin (T7). Scripts do not see the raw s/p/o/c/metadata/parity fields.
Enum(EnumValue)
A user-defined enum value (T9).
Lambda
Non-capturing lambda (body is AST; eval uses a fresh env of params only).
SpeciesRef(SpeciesRef)
A chemical species reference (T33).
Mixture(Mixture)
A mixture of chemical species with composition data (T33).
Conservation(ConservationResult)
A conservation law check result (T34).
Causal(CausalRelation)
A causal relation between two events (T35).
DisclosureDenied
A credentialed disclosure refusal (T55). The agent/host refused to disclose content because the requester lacks the required capability, consent, or authority. This is a first-class rights enforcement value, not a “file not found” error.
DisclosureBoundary(DisclosureBoundary)
Four-bit disclosure boundary (T56). Each bit is independent: publication, replication, agency, exfiltration.
Implementations§
Source§impl Value
impl Value
Sourcepub fn as_instant(&self) -> Option<&Instant>
pub fn as_instant(&self) -> Option<&Instant>
Extract an Instant if this value is one.
Sourcepub fn as_duration(&self) -> Option<&Duration>
pub fn as_duration(&self) -> Option<&Duration>
Extract a Duration if this value is one.
Sourcepub fn as_quantity(&self) -> Option<&Quantity>
pub fn as_quantity(&self) -> Option<&Quantity>
Extract a Quantity if this value is one.
Sourcepub fn as_transform(&self) -> Option<&Transform>
pub fn as_transform(&self) -> Option<&Transform>
Extract a Transform if this value is one.
Sourcepub fn as_field_ref(&self) -> Option<&FieldRef>
pub fn as_field_ref(&self) -> Option<&FieldRef>
Extract a FieldRef if this value is one.
Sourcepub fn as_material_ref(&self) -> Option<&MaterialRef>
pub fn as_material_ref(&self) -> Option<&MaterialRef>
Extract a MaterialRef if this value is one.
Sourcepub fn as_tensor_ref(&self) -> Option<&TensorRef>
pub fn as_tensor_ref(&self) -> Option<&TensorRef>
Extract a TensorRef if this value is one (T52).
Sourcepub fn as_geometry_ref(&self) -> Option<&GeometryRef>
pub fn as_geometry_ref(&self) -> Option<&GeometryRef>
Extract a GeometryRef if this value is one (T52).
Sourcepub fn as_asset_ref(&self) -> Option<&AssetRef>
pub fn as_asset_ref(&self) -> Option<&AssetRef>
Extract an AssetRef if this value is one (T52).
Sourcepub fn as_worldline(&self) -> Option<&WorldLine>
pub fn as_worldline(&self) -> Option<&WorldLine>
Extract a WorldLine if this value is one.
Sourcepub fn as_quin_ref(&self) -> Option<&QuinRef>
pub fn as_quin_ref(&self) -> Option<&QuinRef>
Extract a QuinRef if this value is one (T7).
Sourcepub fn as_species_ref(&self) -> Option<&SpeciesRef>
pub fn as_species_ref(&self) -> Option<&SpeciesRef>
Extract a SpeciesRef if this value is one (T33).
Sourcepub fn as_mixture(&self) -> Option<&Mixture>
pub fn as_mixture(&self) -> Option<&Mixture>
Extract a Mixture if this value is one (T33).
Sourcepub fn as_conservation(&self) -> Option<&ConservationResult>
pub fn as_conservation(&self) -> Option<&ConservationResult>
Extract a ConservationResult if this value is one (T34).
Sourcepub fn as_causal(&self) -> Option<CausalRelation>
pub fn as_causal(&self) -> Option<CausalRelation>
Extract a CausalRelation if this value is one (T35).
Sourcepub fn as_disclosure_denied(&self) -> Option<(&str, &str)>
pub fn as_disclosure_denied(&self) -> Option<(&str, &str)>
Extract a DisclosureDenied if this value is one (T55). Returns (capability, reason).
Sourcepub fn as_disclosure_boundary(&self) -> Option<&DisclosureBoundary>
pub fn as_disclosure_boundary(&self) -> Option<&DisclosureBoundary>
Extract a DisclosureBoundary if this value is one (T56).