pub struct FileField {
pub name: String,
pub label: String,
pub accept: String,
}Expand description
A file field a resource exposes on its detail page. Declared from
Resource::file_fields.
Fields§
§name: StringStable key for the field, used in the attach/serve URLs (e.g. avatar).
label: StringHuman label shown above the widget.
accept: StringRestrict what the file picker offers (the accept attribute), e.g.
"image/*". Empty means anything.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileField
impl RefUnwindSafe for FileField
impl Send for FileField
impl Sync for FileField
impl Unpin for FileField
impl UnsafeUnpin for FileField
impl UnwindSafe for FileField
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