pub struct UploadData { /* private fields */ }
Implementations§
Source§impl UploadData
impl UploadData
pub fn new( blob_uuid: Option<JsString>, bytes: Buffer, file: Option<JsString>, ) -> UploadData
pub fn blob_uuid(&self) -> Option<JsString>
pub fn set_blob_uuid(&mut self, value: Option<JsString>)
pub fn bytes(&self) -> Buffer
pub fn set_bytes(&mut self, value: Buffer)
pub fn file(&self) -> Option<JsString>
pub fn set_file(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for UploadData
impl Clone for UploadData
Source§fn clone(&self) -> UploadData
fn clone(&self) -> UploadData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UploadData
impl Debug for UploadData
Source§impl From<UploadData> for JsValue
impl From<UploadData> for JsValue
Source§fn from(value: UploadData) -> Self
fn from(value: UploadData) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UploadData
impl FromWasmAbi for UploadData
Source§impl IntoWasmAbi for UploadData
impl IntoWasmAbi for UploadData
Source§impl LongRefFromWasmAbi for UploadData
impl LongRefFromWasmAbi for UploadData
Source§impl OptionFromWasmAbi for UploadData
impl OptionFromWasmAbi for UploadData
Source§impl OptionIntoWasmAbi for UploadData
impl OptionIntoWasmAbi for UploadData
Source§impl RefFromWasmAbi for UploadData
impl RefFromWasmAbi for UploadData
Source§type Anchor = RcRef<UploadData>
type Anchor = RcRef<UploadData>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for UploadData
impl RefMutFromWasmAbi for UploadData
Source§impl TryFromJsValue for UploadData
impl TryFromJsValue for UploadData
Source§impl VectorFromWasmAbi for UploadData
impl VectorFromWasmAbi for UploadData
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UploadData]>
Source§impl VectorIntoJsValue for UploadData
impl VectorIntoJsValue for UploadData
fn vector_into_jsvalue(vector: Box<[UploadData]>) -> JsValue
Source§impl VectorIntoWasmAbi for UploadData
impl VectorIntoWasmAbi for UploadData
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UploadData]>) -> Self::Abi
Source§impl WasmDescribeVector for UploadData
impl WasmDescribeVector for UploadData
impl SupportsConstructor for UploadData
impl SupportsInstanceProperty for UploadData
impl SupportsStaticProperty for UploadData
Auto Trait Implementations§
impl Freeze for UploadData
impl RefUnwindSafe for UploadData
impl !Send for UploadData
impl !Sync for UploadData
impl Unpin for UploadData
impl UnwindSafe for UploadData
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
.