pub struct KeyboardInsertedContent {
pub mime_type: String,
pub uri: String,
pub data: Option<Vec<u8>>,
}Expand description
A class representing rich content (such as a PNG image) inserted via the system input method.
The following data is represented in this class:
- MIME Type
- Bytes
- URI
Fields§
§mime_type: StringThe mime type of the inserted content.
uri: StringThe URI (location) of the inserted content, usually a “content://” URI.
data: Option<Vec<u8>>The bytedata of the inserted content.
Implementations§
Source§impl KeyboardInsertedContent
impl KeyboardInsertedContent
Sourcepub fn new(
mime_type: impl Into<String>,
uri: impl Into<String>,
) -> KeyboardInsertedContent
pub fn new( mime_type: impl Into<String>, uri: impl Into<String>, ) -> KeyboardInsertedContent
Creates an object to represent content that is inserted from the virtual keyboard.
The mime type and URI will always be provided, but the bytedata may be null.
Sourcepub fn data(self, data: Vec<u8>) -> KeyboardInsertedContent
pub fn data(self, data: Vec<u8>) -> KeyboardInsertedContent
Dart KeyboardInsertedContent(data:).
Trait Implementations§
Source§impl Clone for KeyboardInsertedContent
impl Clone for KeyboardInsertedContent
Source§impl Debug for KeyboardInsertedContent
impl Debug for KeyboardInsertedContent
Source§impl Display for KeyboardInsertedContent
impl Display for KeyboardInsertedContent
impl Eq for KeyboardInsertedContent
Source§impl Hash for KeyboardInsertedContent
impl Hash for KeyboardInsertedContent
Source§impl PartialEq for KeyboardInsertedContent
impl PartialEq for KeyboardInsertedContent
impl StructuralPartialEq for KeyboardInsertedContent
Auto Trait Implementations§
impl Freeze for KeyboardInsertedContent
impl RefUnwindSafe for KeyboardInsertedContent
impl Send for KeyboardInsertedContent
impl Sync for KeyboardInsertedContent
impl Unpin for KeyboardInsertedContent
impl UnsafeUnpin for KeyboardInsertedContent
impl UnwindSafe for KeyboardInsertedContent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.