pub struct FileDataBuilder { /* private fields */ }Expand description
Builder for FileData.
Implementations§
Source§impl FileDataBuilder
impl FileDataBuilder
Sourcepub fn initial<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn initial<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
This is the default value the data object has.
Sourcepub fn extensions(&mut self, value: IndexSet<String>) -> &mut Self
pub fn extensions(&mut self, value: IndexSet<String>) -> &mut Self
This is a collection of extensions allowed to open.
eg: "extensions": ["*.jpg","*.png"]
Trait Implementations§
Source§impl Clone for FileDataBuilder
impl Clone for FileDataBuilder
Source§fn clone(&self) -> FileDataBuilder
fn clone(&self) -> FileDataBuilder
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 moreAuto Trait Implementations§
impl Freeze for FileDataBuilder
impl RefUnwindSafe for FileDataBuilder
impl Send for FileDataBuilder
impl Sync for FileDataBuilder
impl Unpin for FileDataBuilder
impl UnwindSafe for FileDataBuilder
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