pub fn add_stream<I: Into<String>>(
        &mut self,
        name: I,
        filename: I,
        content_type: I,
        stream: S,
    ) {
        let stream = MultipartStream::new(name, filename, content_type, stream);

        if self.state.is_some() {
            self.items.push_back(MultipartItems::Stream(stream));
        } else {
            self.state = Some(State::WritingStreamHeader(stream));
        }
    }
/// Add a raw Stream to the Multipart request
///
/// The Stream should return items of `Result<Bytes, Error>`
Add a raw Stream to the Multipart request
The Stream should return items of `Result`
Add a raw Stream to the Multipart request The Stream should return items of ` Result `
pub fn add_stream<I: Into<String>>(
        &mut self,
        name: I,
        filename: I,
        content_type: I,
        stream: S,
    ) {
        let stream = MultipartStream::new(name, filename, content_type, stream);
        if self.state.is_some() {
            self.items.push_back(MultipartItems::Stream(stream));
        } else {
            self.state = Some(State::WritingStreamHeader(stream));
        }
    }
pub fn add_stream < I : Into < String > > ( & mut self , name : I , filename : I , content_type : I , stream : S , ) { let stream = MultipartStream :: new ( name , filename , content_type , stream ) ; if self . state . is_some ( ) { self . items . push_back ( MultipartItems :: Stream ( stream ) ) ; } else { self . state = Some ( State :: WritingStreamHeader ( stream ) ) ; } }
Add a raw Stream to the Multipart request
The Stream should return items of `Result<Bytes, Error>`
Add a raw Stream to the Multipart request The Stream should return items of ` Result<Bytes Error > `
&mut self
name
I
filename
I
content_type
I
stream
S