pub struct Data { /* private fields */ }
Implementations§
Source§impl Data
impl Data
pub fn new( bookmark: Option<JsString>, html: Option<JsString>, image: Option<NativeImage>, rtf: Option<JsString>, text: Option<JsString>, ) -> Data
pub fn bookmark(&self) -> Option<JsString>
pub fn set_bookmark(&mut self, value: Option<JsString>)
pub fn html(&self) -> Option<JsString>
pub fn set_html(&mut self, value: Option<JsString>)
pub fn image(&self) -> Option<NativeImage>
pub fn set_image(&mut self, value: Option<NativeImage>)
pub fn rtf(&self) -> Option<JsString>
pub fn set_rtf(&mut self, value: Option<JsString>)
pub fn text(&self) -> Option<JsString>
pub fn set_text(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl FromWasmAbi for Data
impl FromWasmAbi for Data
Source§impl IntoWasmAbi for Data
impl IntoWasmAbi for Data
Source§impl LongRefFromWasmAbi for Data
impl LongRefFromWasmAbi for Data
Source§impl OptionFromWasmAbi for Data
impl OptionFromWasmAbi for Data
Source§impl OptionIntoWasmAbi for Data
impl OptionIntoWasmAbi for Data
Source§impl RefFromWasmAbi for Data
impl RefFromWasmAbi for Data
Source§impl RefMutFromWasmAbi for Data
impl RefMutFromWasmAbi for Data
Source§impl TryFromJsValue for Data
impl TryFromJsValue for Data
Source§impl VectorFromWasmAbi for Data
impl VectorFromWasmAbi for Data
Source§impl VectorIntoWasmAbi for Data
impl VectorIntoWasmAbi for Data
impl Eq for Data
impl StructuralPartialEq for Data
impl SupportsConstructor for Data
impl SupportsInstanceProperty for Data
impl SupportsStaticProperty for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl !Send for Data
impl !Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.