pub enum FormationTemplate {
Static(StaticFormationTemplate),
Scored(ScoredFormationTemplate),
Deliberated(DeliberatedFormationTemplate),
OpenClaw(OpenClawFormationTemplate),
}Expand description
Reusable formation choice before concrete suggestor assembly happens.
Variants§
Static(StaticFormationTemplate)
Scored(ScoredFormationTemplate)
Deliberated(DeliberatedFormationTemplate)
OpenClaw(OpenClawFormationTemplate)
Implementations§
Source§impl FormationTemplate
impl FormationTemplate
pub fn static_template(template: StaticFormationTemplate) -> Self
pub fn scored(template: ScoredFormationTemplate) -> Self
pub fn deliberated(template: DeliberatedFormationTemplate) -> Self
pub fn open_claw(template: OpenClawFormationTemplate) -> Self
pub fn metadata(&self) -> &FormationTemplateMetadata
pub fn id(&self) -> &str
pub fn kind(&self) -> FormationKind
Sourcepub fn to_request(&self, request_id: impl Into<String>) -> FormationRequest
pub fn to_request(&self, request_id: impl Into<String>) -> FormationRequest
Compile this template into the current request surface.
The template’s required_capabilities remain catalog metadata for
problem classification and later guru/tournament logic. They are not
copied into FormationRequest::required_capabilities because the
current assembly suggestor interprets that field as a global
per-suggestor eligibility gate.
Trait Implementations§
Source§impl Clone for FormationTemplate
impl Clone for FormationTemplate
Source§fn clone(&self) -> FormationTemplate
fn clone(&self) -> FormationTemplate
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 moreSource§impl Debug for FormationTemplate
impl Debug for FormationTemplate
Source§impl<'de> Deserialize<'de> for FormationTemplate
impl<'de> Deserialize<'de> for FormationTemplate
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 FormationTemplate
impl RefUnwindSafe for FormationTemplate
impl Send for FormationTemplate
impl Sync for FormationTemplate
impl Unpin for FormationTemplate
impl UnsafeUnpin for FormationTemplate
impl UnwindSafe for FormationTemplate
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