pub struct FormationTemplateMetadata {
pub id: String,
pub description: String,
pub keywords: Vec<String>,
pub entities: Vec<String>,
pub required_roles: Vec<SuggestorRole>,
pub required_capabilities: Vec<SuggestorCapability>,
}Expand description
Classification-facing metadata for a reusable formation template.
Fields§
§id: StringStable catalog identifier.
description: StringHuman-readable explanation of the formation’s purpose.
keywords: Vec<String>Loose intent phrases that suggest this template is relevant.
entities: Vec<String>Entity labels or structured fields the template expects to see.
required_roles: Vec<SuggestorRole>Roles the assembled formation must cover.
required_capabilities: Vec<SuggestorCapability>Problem-level capabilities this template is designed to satisfy.
Implementations§
Source§impl FormationTemplateMetadata
impl FormationTemplateMetadata
pub fn new( id: impl Into<String>, description: impl Into<String>, required_roles: impl IntoIterator<Item = SuggestorRole>, ) -> FormationTemplateMetadata
pub fn with_keyword( self, keyword: impl Into<String>, ) -> FormationTemplateMetadata
pub fn with_entity(self, entity: impl Into<String>) -> FormationTemplateMetadata
pub fn with_required_capability( self, capability: SuggestorCapability, ) -> FormationTemplateMetadata
Trait Implementations§
Source§impl Clone for FormationTemplateMetadata
impl Clone for FormationTemplateMetadata
Source§fn clone(&self) -> FormationTemplateMetadata
fn clone(&self) -> FormationTemplateMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FormationTemplateMetadata
impl Debug for FormationTemplateMetadata
Source§impl<'de> Deserialize<'de> for FormationTemplateMetadata
impl<'de> Deserialize<'de> for FormationTemplateMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FormationTemplateMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FormationTemplateMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FormationTemplateMetadata
impl Serialize for FormationTemplateMetadata
Source§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 FormationTemplateMetadata
impl RefUnwindSafe for FormationTemplateMetadata
impl Send for FormationTemplateMetadata
impl Sync for FormationTemplateMetadata
impl Unpin for FormationTemplateMetadata
impl UnsafeUnpin for FormationTemplateMetadata
impl UnwindSafe for FormationTemplateMetadata
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