pub struct Blob { /* private fields */ }
Expand description
A Blob
.
Blob
s can be created directly from &str
, &[u8]
, and js_sys::ArrayBuffer
s using the
Blob::new
or Blob::new_with_options
functions.
Implementations
Create a new Blob
from a &str
, &[u8]
or js_sys::ArrayBuffer
.
pub fn new_with_options<T>(content: T, mime_type: Option<&str>) -> Blob where
T: BlobContents,
pub fn new_with_options<T>(content: T, mime_type: Option<&str>) -> Blob where
T: BlobContents,
Like new
, but allows specifying the MIME type (also known as content type or media
type) of the Blob
.
The raw MIME type (also known as content type or media type) of the File
or
Blob
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Blob
impl UnwindSafe for Blob
Blanket Implementations
Mutably borrows from an owned value. Read more