pub fn add_field<I: Into<String>>(&mut self, name: I, value: I) {
        let field = MultipartField::new(name, value);

        if self.state.is_some() {
            self.items.push_back(MultipartItems::Field(field));
        } else {
            self.state = Some(State::WritingField(field));
        }
    }
/// Add a Field to the Multipart request
Add a Field to the Multipart request
Add a Field to the Multipart request
pub fn add_field<I: Into<String>>(&mut self, name: I, value: I) {
        let field = MultipartField::new(name, value);
        if self.state.is_some() {
            self.items.push_back(MultipartItems::Field(field));
        } else {
            self.state = Some(State::WritingField(field));
        }
    }
pub fn add_field < I : Into < String > > ( & mut self , name : I , value : I ) { let field = MultipartField :: new ( name , value ) ; if self . state . is_some ( ) { self . items . push_back ( MultipartItems :: Field ( field ) ) ; } else { self . state = Some ( State :: WritingField ( field ) ) ; } }
Add a Field to the Multipart request
Add a Field to the Multipart request
&mut self
name
I
value
I