Struct ExtractorContract
pub struct ExtractorContract {
pub name: String,
pub window_size: usize,
pub trigger: String,
pub promotions: Vec<PromotionContract>,
}Expand description
A turn extractor declaration.
Fields§
§name: StringExtractor name.
window_size: usizeRecent transcript turns consumed.
trigger: StringTrigger mode.
promotions: Vec<PromotionContract>Explicit promotion policy. Empty means legacy auto-flatten behavior.
Trait Implementations§
§impl Clone for ExtractorContract
impl Clone for ExtractorContract
§fn clone(&self) -> ExtractorContract
fn clone(&self) -> ExtractorContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ExtractorContract
impl Debug for ExtractorContract
§impl<'de> Deserialize<'de> for ExtractorContract
impl<'de> Deserialize<'de> for ExtractorContract
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtractorContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExtractorContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for ExtractorContract
impl Serialize for ExtractorContract
§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 ExtractorContract
impl RefUnwindSafe for ExtractorContract
impl Send for ExtractorContract
impl Sync for ExtractorContract
impl Unpin for ExtractorContract
impl UnwindSafe for ExtractorContract
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