Struct FrameSpec
pub struct FrameSpec {
pub name: String,
pub slots: Vec<SlotSpec>,
}Expand description
The slot definition of a frame — the source of truth for what a stage that
collects this frame must gather, plus the metadata that drives confirmation
and repair.
Fields§
§name: StringFrame name (defaults to the struct name in snake_case).
slots: Vec<SlotSpec>The slots, in declaration order.
Implementations§
§impl FrameSpec
impl FrameSpec
pub fn slot_keys(&self) -> Vec<String>
pub fn slot_keys(&self) -> Vec<String>
The State keys of every slot, in order — what a collect completes on.
pub fn to_extract(&self) -> Option<Extract>
pub fn to_extract(&self) -> Option<Extract>
Lower the frame’s recognizer-bearing slots into an Extract record that
fills them from the transcript. Returns None when no slot has a
recognizer (a frame whose slots are gathered some other way).
Trait Implementations§
§impl<'de> Deserialize<'de> for FrameSpec
impl<'de> Deserialize<'de> for FrameSpec
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for FrameSpec
impl Serialize for FrameSpec
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FrameSpec
impl RefUnwindSafe for FrameSpec
impl Send for FrameSpec
impl Sync for FrameSpec
impl Unpin for FrameSpec
impl UnwindSafe for FrameSpec
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