pub enum UserInput {
Text {
text: String,
text_elements: Option<Vec<TextElement>>,
},
Image {
url: String,
},
LocalImage {
path: String,
},
Skill {
name: String,
path: String,
},
Mention {
name: String,
path: String,
},
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserInput
impl<'de> Deserialize<'de> for UserInput
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
impl StructuralPartialEq for UserInput
Auto Trait Implementations§
impl Freeze for UserInput
impl RefUnwindSafe for UserInput
impl Send for UserInput
impl Sync for UserInput
impl Unpin for UserInput
impl UnsafeUnpin for UserInput
impl UnwindSafe for UserInput
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