Struct multipart::server::save::PartialEntries
[−]
[src]
pub struct PartialEntries<M> { pub entries: Entries, pub partial_file: Option<PartialFileField<M>>, }
The partial result type for Multipart::save*()
.
Contains the successfully saved entries as well as the partially saved file that was in the process of being read when the error occurred, if applicable.
Fields
entries: Entries
The entries that were saved successfully.
partial_file: Option<PartialFileField<M>>
The file that was in the process of being read. None
if the error
occurred between file entries.
Methods
impl<M> PartialEntries<M>
[src]
fn keep_partial(self) -> Entries
[src]
If partial_file
is present and contains a SavedFile
then just
add it to the Entries
instance and return it.
Otherwise, returns self.entries
Trait Implementations
impl<M: Debug> Debug for PartialEntries<M>
[src]
impl<M> Into<Entries> for PartialEntries<M>
[src]
Discards partial_file