pub struct FormationTemplateQuery {
pub keywords: Vec<String>,
pub entities: Vec<String>,
pub required_capabilities: Vec<SuggestorCapability>,
}Expand description
Query surface a classifier can emit before choosing a formation template.
Fields§
§keywords: Vec<String>§entities: Vec<String>§required_capabilities: Vec<SuggestorCapability>Implementations§
Source§impl FormationTemplateQuery
impl FormationTemplateQuery
pub fn new() -> Self
pub fn with_keyword(self, keyword: impl Into<String>) -> Self
pub fn with_entity(self, entity: impl Into<String>) -> Self
pub fn with_required_capability(self, capability: SuggestorCapability) -> Self
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for FormationTemplateQuery
impl Clone for FormationTemplateQuery
Source§fn clone(&self) -> FormationTemplateQuery
fn clone(&self) -> FormationTemplateQuery
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 FormationTemplateQuery
impl Debug for FormationTemplateQuery
Source§impl Default for FormationTemplateQuery
impl Default for FormationTemplateQuery
Source§fn default() -> FormationTemplateQuery
fn default() -> FormationTemplateQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FormationTemplateQuery
impl<'de> Deserialize<'de> for FormationTemplateQuery
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 FormationTemplateQuery
impl RefUnwindSafe for FormationTemplateQuery
impl Send for FormationTemplateQuery
impl Sync for FormationTemplateQuery
impl Unpin for FormationTemplateQuery
impl UnsafeUnpin for FormationTemplateQuery
impl UnwindSafe for FormationTemplateQuery
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