pub struct CommandTranslationQuery {
pub session_id: u64,
pub text: String,
}Expand description
What /fy asks the user’s translation service: the English typed after the trigger, to be translated into Chinese. Unlike OnlineQuery it is never raised by spelling; only this command in the / mode produces one, and the answer is refused unless the session and the text are still the ones that asked.
Fields§
§session_id: u64§text: StringTrait Implementations§
Source§impl Clone for CommandTranslationQuery
impl Clone for CommandTranslationQuery
Source§impl Debug for CommandTranslationQuery
impl Debug for CommandTranslationQuery
Source§impl Default for CommandTranslationQuery
impl Default for CommandTranslationQuery
impl Eq for CommandTranslationQuery
Source§impl PartialEq for CommandTranslationQuery
impl PartialEq for CommandTranslationQuery
impl StructuralPartialEq for CommandTranslationQuery
Auto Trait Implementations§
impl Freeze for CommandTranslationQuery
impl RefUnwindSafe for CommandTranslationQuery
impl Send for CommandTranslationQuery
impl Sync for CommandTranslationQuery
impl Unpin for CommandTranslationQuery
impl UnsafeUnpin for CommandTranslationQuery
impl UnwindSafe for CommandTranslationQuery
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.