pub struct PluginCommandQuery {
pub session_id: u64,
pub preedit: String,
pub trigger: String,
pub argument: String,
}Expand description
插件指令要宿主去问的那一次:/ 模式里输入以某个生效的插件触发词开头、这份预编辑串还没有缓存的行时才有。宿主把触发词和参数交给触发词的主人,再把结果连同这个值交回 Session::apply_plugin_command_rows;会话或预编辑串已经变了的回答被拒绝。
Fields§
§session_id: u64§preedit: String整段本地预编辑串,含开头的 /。
trigger: String§argument: String触发词后面的小写字母,可以为空(/uuid)。
Trait Implementations§
Source§impl Clone for PluginCommandQuery
impl Clone for PluginCommandQuery
Source§impl Debug for PluginCommandQuery
impl Debug for PluginCommandQuery
Source§impl Default for PluginCommandQuery
impl Default for PluginCommandQuery
impl Eq for PluginCommandQuery
Source§impl PartialEq for PluginCommandQuery
impl PartialEq for PluginCommandQuery
impl StructuralPartialEq for PluginCommandQuery
Auto Trait Implementations§
impl Freeze for PluginCommandQuery
impl RefUnwindSafe for PluginCommandQuery
impl Send for PluginCommandQuery
impl Sync for PluginCommandQuery
impl Unpin for PluginCommandQuery
impl UnsafeUnpin for PluginCommandQuery
impl UnwindSafe for PluginCommandQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.