Enum prima_bridge::RestMultipart
source · pub enum RestMultipart {
Single(MultipartFormFileField),
Multiple(HashSet<MultipartFormFileField>),
}
Expand description
A RestRequest multipart form body.
Only files can be included in the multipart body.
It can either be Single
(one file) or Multiple
(multiple files).
Each file corresponds to a named field in the form data.
Variants§
Single(MultipartFormFileField)
Multiple(HashSet<MultipartFormFileField>)
Implementations§
source§impl RestMultipart
impl RestMultipart
pub fn single<S>(form_field: S, file: MultipartFile) -> Self
pub fn multiple(files: HashSet<MultipartFormFileField>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RestMultipart
impl Send for RestMultipart
impl Sync for RestMultipart
impl Unpin for RestMultipart
impl !UnwindSafe for RestMultipart
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