pub struct UploadFile { /* private fields */ }
Implementations§
Source§impl UploadFile
impl UploadFile
pub fn new( file_path: JsString, kind: JsString, length: usize, modification_time: u32, offset: usize, ) -> UploadFile
pub fn file_path(&self) -> JsString
pub fn set_file_path(&mut self, value: JsString)
pub fn kind(&self) -> JsString
pub fn set_kind(&mut self, value: JsString)
pub fn length(&self) -> usize
pub fn set_length(&mut self, value: usize)
pub fn modification_time(&self) -> u32
pub fn set_modification_time(&mut self, value: u32)
pub fn offset(&self) -> usize
pub fn set_offset(&mut self, value: usize)
Trait Implementations§
Source§impl Clone for UploadFile
impl Clone for UploadFile
Source§fn clone(&self) -> UploadFile
fn clone(&self) -> UploadFile
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 UploadFile
impl Debug for UploadFile
Source§impl From<UploadFile> for JsValue
impl From<UploadFile> for JsValue
Source§fn from(value: UploadFile) -> Self
fn from(value: UploadFile) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UploadFile
impl FromWasmAbi for UploadFile
Source§impl IntoWasmAbi for UploadFile
impl IntoWasmAbi for UploadFile
Source§impl LongRefFromWasmAbi for UploadFile
impl LongRefFromWasmAbi for UploadFile
Source§impl OptionFromWasmAbi for UploadFile
impl OptionFromWasmAbi for UploadFile
Source§impl OptionIntoWasmAbi for UploadFile
impl OptionIntoWasmAbi for UploadFile
Source§impl PartialEq for UploadFile
impl PartialEq for UploadFile
Source§impl RefFromWasmAbi for UploadFile
impl RefFromWasmAbi for UploadFile
Source§type Anchor = RcRef<UploadFile>
type Anchor = RcRef<UploadFile>
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 UploadFile
impl RefMutFromWasmAbi for UploadFile
Source§impl TryFromJsValue for UploadFile
impl TryFromJsValue for UploadFile
Source§impl VectorFromWasmAbi for UploadFile
impl VectorFromWasmAbi for UploadFile
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[UploadFile]>
Source§impl VectorIntoJsValue for UploadFile
impl VectorIntoJsValue for UploadFile
fn vector_into_jsvalue(vector: Box<[UploadFile]>) -> JsValue
Source§impl VectorIntoWasmAbi for UploadFile
impl VectorIntoWasmAbi for UploadFile
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[UploadFile]>) -> Self::Abi
Source§impl WasmDescribeVector for UploadFile
impl WasmDescribeVector for UploadFile
impl Eq for UploadFile
impl StructuralPartialEq for UploadFile
impl SupportsConstructor for UploadFile
impl SupportsInstanceProperty for UploadFile
impl SupportsStaticProperty for UploadFile
Auto Trait Implementations§
impl Freeze for UploadFile
impl RefUnwindSafe for UploadFile
impl !Send for UploadFile
impl !Sync for UploadFile
impl Unpin for UploadFile
impl UnwindSafe for UploadFile
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
.