pub struct Envelope {
pub format: u32,
pub name: String,
pub description: Option<String>,
pub author: Option<String>,
pub spec: Option<Value>,
pub source: Option<String>,
pub config: Option<Value>,
pub universe: Option<Universe>,
pub engine_version: Option<String>,
}Expand description
The parsed envelope document. Field presence mirrors the JSON; semantic
validation (version, exactly-one-of spec/source, a well-formed spec) is done
by check, not by deserialization alone.
Fields§
§format: u32Envelope format version. Must equal FORMAT_VERSION.
name: StringHuman-readable strategy name (must be non-empty).
description: Option<String>§spec: Option<Value>A lowered Expr tree. Exactly one of spec / source must be present.
source: Option<String>Lemon source text. Exactly one of spec / source must be present.
config: Option<Value>Engine config knobs (fees, delist, etc.). Opaque at the language layer — the engine/runner interprets it; here we only require it be an object.
universe: Option<Universe>§engine_version: Option<String>Free-form engine-version pin for reproducibility (e.g. "yuzu-core 0.4").
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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