pub struct DropImageFileParams {
pub callback: Option<Rc<dyn Fn(Option<DropFileItem>)>>,
pub revert_label: String,
pub cancel_label: String,
pub no_image_text: String,
pub dropzone_css: Css,
pub dropzone_add_css: Css,
pub img_css: Css,
}Fields§
§callback: Option<Rc<dyn Fn(Option<DropFileItem>)>>Custom callback when new image dropped, leave empty to automatically set/unset item
revert_label: String§cancel_label: String§no_image_text: String§dropzone_css: Css§dropzone_add_css: Css§img_css: CssTrait Implementations§
Source§impl Clone for DropImageFileParams
impl Clone for DropImageFileParams
Source§fn clone(&self) -> DropImageFileParams
fn clone(&self) -> DropImageFileParams
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 DropImageFileParams
impl !RefUnwindSafe for DropImageFileParams
impl !Send for DropImageFileParams
impl !Sync for DropImageFileParams
impl Unpin for DropImageFileParams
impl !UnwindSafe for DropImageFileParams
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more