#[derive(IntoContext)]Expand description
Derive IntoContext for a struct, converting its fields into Context key-value pairs.
Field type mapping:
String/&str/&'a str→Value::String(borrowed strs are cloned)i8,i16,i32,i64,isize,u8,u16,u32→Value::Numbervia infallibleas i64castu64,usize→Value::Numbervia saturating conversion: values abovei64::MAX(≈9.2 × 10¹⁸) saturate toi64::MAXrather than wrapping to a negative. If you need the raw bit pattern, convert explicitly in host code before constructing the context.Vec<String>→Value::ListOption<T>whereTis any of the above → inserted only whenSome(_)
Unsupported field types produce a compile-time error so template slots cannot silently disappear.