pub struct FormPart {
pub key: String,
pub value: Vec<u8>,
pub file_name: Option<String>,
pub mime_type: Option<String>,
}Expand description
Multipart 表单字段
Fields§
§key: String§value: Vec<u8>字段值(文本或文件内容)
file_name: Option<String>文件名(文件上传时设置)
mime_type: Option<String>MIME 类型(如 “text/plain”、“image/png”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FormPart
impl<'de> Deserialize<'de> for FormPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormPart
impl RefUnwindSafe for FormPart
impl Send for FormPart
impl Sync for FormPart
impl Unpin for FormPart
impl UnsafeUnpin for FormPart
impl UnwindSafe for FormPart
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