pub struct BodyItemInfo {
pub content_type: ContentType,
pub name: Option<String>,
pub file_name: Option<String>,
/* private fields */
}Expand description
Info for bodyitem: name,content type, file name if its a file, and value if urlencoded
Fields§
§content_type: ContentType§name: Option<String>§file_name: Option<String>Implementations§
Source§impl BodyItemInfo
impl BodyItemInfo
pub fn default() -> BodyItemInfo
pub fn new_simple(content_type: ContentType) -> BodyItemInfo
pub fn new_url(name: String, value: String) -> BodyItemInfo
pub fn to_body_item(&self) -> BodyItem<'_>
pub fn from_str(input: &str) -> Result<BodyItemInfo, HttpServerError>
Trait Implementations§
Source§impl Clone for BodyItemInfo
impl Clone for BodyItemInfo
Source§fn clone(&self) -> BodyItemInfo
fn clone(&self) -> BodyItemInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BodyItemInfo
impl RefUnwindSafe for BodyItemInfo
impl Send for BodyItemInfo
impl Sync for BodyItemInfo
impl Unpin for BodyItemInfo
impl UnwindSafe for BodyItemInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)