pub struct FileHandlerBuilder { /* private fields */ }Expand description
Builder for FileHandler.
Implementations§
Source§impl FileHandlerBuilder
impl FileHandlerBuilder
pub fn action<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn icons<VALUE: Into<Vec<ImageResource>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn accepts<VALUE: Into<Vec<FileFilter>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn accepts<VALUE: Into<Vec<FileFilter>>>( &mut self, value: VALUE, ) -> &mut Self
Mimic a map, name is the key, accepts is the value.
Sourcepub fn launch_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn launch_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Won’t repeat the enums, using string for easy comparison. Same as the other enums below.
Sourcepub fn build(&self) -> Result<FileHandler, FileHandlerBuilderError>
pub fn build(&self) -> Result<FileHandler, FileHandlerBuilderError>
Trait Implementations§
Source§impl Clone for FileHandlerBuilder
impl Clone for FileHandlerBuilder
Source§fn clone(&self) -> FileHandlerBuilder
fn clone(&self) -> FileHandlerBuilder
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 FileHandlerBuilder
impl RefUnwindSafe for FileHandlerBuilder
impl Send for FileHandlerBuilder
impl Sync for FileHandlerBuilder
impl Unpin for FileHandlerBuilder
impl UnsafeUnpin for FileHandlerBuilder
impl UnwindSafe for FileHandlerBuilder
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