pub struct FileForm { /* private fields */ }Implementations§
Source§impl FileForm
impl FileForm
pub fn new_path(path: impl AsRef<Path>) -> Result<FileForm, HlsError>
pub fn new_bytes(bytes: impl Into<Vec<u8>>) -> FileForm
pub fn with_filename(self, filename: impl ToString) -> Self
pub fn with_filetype(self, filetype: impl ToString) -> Self
pub fn with_field_name(self, field_name: impl ToString) -> Self
pub fn set_filename(&mut self, filename: impl ToString)
pub fn set_filetype(&mut self, filetype: impl ToString)
pub fn set_field_name(&mut self, field: impl ToString)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileForm
impl RefUnwindSafe for FileForm
impl Send for FileForm
impl Sync for FileForm
impl Unpin for FileForm
impl UnsafeUnpin for FileForm
impl UnwindSafe for FileForm
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