pub enum IntentType {
OpenApp(String),
SwitchToApp(String),
CheckNotification(String),
HandleFile(ExtensionCategory),
EnterContext(String),
Idle,
}Expand description
意图类型
Variants§
OpenApp(String)
用户将打开某个 app
SwitchToApp(String)
用户将切换到某个 app
CheckNotification(String)
用户将查看某条通知
HandleFile(ExtensionCategory)
用户将处理某类文件
EnterContext(String)
用户即将进入某个物理场景
Idle
无明确意图, 保持观察
Trait Implementations§
Source§impl Clone for IntentType
impl Clone for IntentType
Source§fn clone(&self) -> IntentType
fn clone(&self) -> IntentType
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 IntentType
impl Debug for IntentType
Source§impl<'de> Deserialize<'de> for IntentType
impl<'de> Deserialize<'de> for IntentType
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
Source§impl PartialEq for IntentType
impl PartialEq for IntentType
Source§impl Serialize for IntentType
impl Serialize for IntentType
impl Eq for IntentType
impl StructuralPartialEq for IntentType
Auto Trait Implementations§
impl Freeze for IntentType
impl RefUnwindSafe for IntentType
impl Send for IntentType
impl Sync for IntentType
impl Unpin for IntentType
impl UnsafeUnpin for IntentType
impl UnwindSafe for IntentType
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