pub fn to_text(&self) -> Result<TextArticle> {
        let headers = self.headers.clone();

        let body: Vec<String> = self
            .unterminated()
            .map(|l| from_utf8(l).map(ToString::to_string))
            .collect::<StdResult<_, _>>()?;

        let number = self.number;
        let message_id = self.message_id.clone();
        Ok(TextArticle {
            number,
            message_id,
            headers,
            body,
        })
    }
/// Convert the article into a [`TextArticle`]
///
/// This will return an error if the body is not valid UTF-8
Convert the article into a [`TextArticle`]
This will return an error if the body is not valid UTF-8
Convert the article into a [ ` TextArticle ` ] This will return an error if the body is not valid UTF - 8
pub fn to_text(&self) -> Result<TextArticle> {
        let headers = self.headers.clone();
        let body: Vec<String> = self
            .unterminated()
            .map(|l| from_utf8(l).map(ToString::to_string))
            .collect::<StdResult<_, _>>()?;
        let number = self.number;
        let message_id = self.message_id.clone();
        Ok(TextArticle {
            number,
            message_id,
            headers,
            body,
        })
    }
pub fn to_text ( & self ) -> Result < TextArticle > { let headers = self . headers . clone ( ) ; let body : Vec < String > = self . unterminated ( ) . map ( | l | from_utf8 ( l ) . map ( ToString :: to_string ) ) . collect :: < StdResult < _ , _ > > ( ) ? ; let number = self . number ; let message_id = self . message_id . clone ( ) ; Ok ( TextArticle { number , message_id , headers , body , } ) }
Convert the article into a [`TextArticle`]
This will return an error if the body is not valid UTF-8
Convert the article into a [ ` TextArticle ` ] This will return an error if the body is not valid UTF - 8
&self