Struct headless_lms_server::controllers::langs::UploadForm
source · struct UploadForm {
metadata: Json<UploadMetadata>,
file: TempFile,
}
Fields§
§metadata: Json<UploadMetadata>
§file: TempFile
Trait Implementations§
source§impl MultipartCollect for UploadForm
impl MultipartCollect for UploadForm
source§fn limit(field_name: &str) -> Option<usize>
fn limit(field_name: &str) -> Option<usize>
An optional limit in bytes to be applied a given field name. Note this limit will be shared
across all fields sharing the same name.
source§fn handle_field<'t>(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits,
state: &'t mut State
) -> Pin<Box<dyn Future<Output = Result<(), MultipartError>> + 't>>
fn handle_field<'t>( req: &'t HttpRequest, field: Field, limits: &'t mut Limits, state: &'t mut State ) -> Pin<Box<dyn Future<Output = Result<(), MultipartError>> + 't>>
The extractor will call this function for each incoming field, the state can be updated
with the processed field data.
source§fn from_state(state: State) -> Result<Self, MultipartError>
fn from_state(state: State) -> Result<Self, MultipartError>
Once all the fields have been processed and stored in the state, this is called
to convert into the struct representation.
Auto Trait Implementations§
impl RefUnwindSafe for UploadForm
impl Send for UploadForm
impl Sync for UploadForm
impl Unpin for UploadForm
impl UnwindSafe for UploadForm
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