pub struct IntentSpec {
pub id: Intent,
pub name_zh: &'static str,
pub atoms: &'static [&'static str],
pub output_shape: &'static str,
pub status: IntentStatus,
pub note: &'static str,
}Expand description
问局意图规格:每意图所需输入原子 + 默认路由叶 + 输出形态 + 实现状态。
与 crate::DetItem/crate::SchoolItem 同构对偶:profile/schools 声明「怎么算」(供给侧),
intents 声明「被谁调用」(需求侧)。
Fields§
§id: Intent这一类问局。
name_zh: &'static str中文显示名。
atoms: &'static [&'static str]所需输入原子(instant/geo/sex/seed/text/category/window…),用于 web 表单生成。
output_shape: &'static str输出形态(盘/势/断/期/序/配/位)。
status: IntentStatus实现状态。
note: &'static str一句说明。
Trait Implementations§
Source§impl Clone for IntentSpec
impl Clone for IntentSpec
Source§fn clone(&self) -> IntentSpec
fn clone(&self) -> IntentSpec
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 moreimpl Copy for IntentSpec
Source§impl Debug for IntentSpec
impl Debug for IntentSpec
Auto Trait Implementations§
impl Freeze for IntentSpec
impl RefUnwindSafe for IntentSpec
impl Send for IntentSpec
impl Sync for IntentSpec
impl Unpin for IntentSpec
impl UnsafeUnpin for IntentSpec
impl UnwindSafe for IntentSpec
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