pub struct BinaryField {
pub field_name: String,
pub data: Vec<u8>,
pub content_type: Option<String>,
}Expand description
A single binary field in a multipart form.
Fields§
§field_name: StringThe form field name (must match the schema property name).
data: Vec<u8>The raw binary content.
content_type: Option<String>Optional MIME type for this part (e.g., application/octet-stream).
Trait Implementations§
Source§impl Clone for BinaryField
impl Clone for BinaryField
Source§fn clone(&self) -> BinaryField
fn clone(&self) -> BinaryField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryField
impl Debug for BinaryField
Source§impl<'de> Deserialize<'de> for BinaryField
impl<'de> Deserialize<'de> for BinaryField
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 BinaryField
impl RefUnwindSafe for BinaryField
impl Send for BinaryField
impl Sync for BinaryField
impl Unpin for BinaryField
impl UnsafeUnpin for BinaryField
impl UnwindSafe for BinaryField
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