diff options
author | Kartikaya Gupta <kats@seldon.staktrace.com> | 2016-06-22 11:41:54 -0400 |
---|---|---|
committer | Kartikaya Gupta <kats@seldon.staktrace.com> | 2016-06-22 11:41:54 -0400 |
commit | a48bf7ece27e4f52d980b5668abe49cf046255e8 (patch) | |
tree | 12dce0a7ec1c384fe233ba3e337c543e7bc61f3b | |
parent | accf7a59489a4cd6107708d41900142d06544be9 (diff) |
Update documentation
-rw-r--r-- | target/doc/mailparse/enum.MailParseError.html | 21 | ||||
-rw-r--r-- | target/doc/mailparse/fn.parse_content_type.html | 9 | ||||
-rw-r--r-- | target/doc/mailparse/fn.parse_header.html | 9 | ||||
-rw-r--r-- | target/doc/mailparse/fn.parse_headers.html | 9 | ||||
-rw-r--r-- | target/doc/mailparse/fn.parse_mail.html | 9 | ||||
-rw-r--r-- | target/doc/mailparse/index.html | 144 | ||||
-rw-r--r-- | target/doc/mailparse/macros/index.html | 0 | ||||
-rw-r--r-- | target/doc/mailparse/macros/sidebar-items.js | 1 | ||||
-rw-r--r-- | target/doc/mailparse/struct.MailHeader.html | 11 | ||||
-rw-r--r-- | target/doc/mailparse/struct.ParsedContentType.html | 17 | ||||
-rw-r--r-- | target/doc/mailparse/struct.ParsedMail.html | 17 | ||||
-rw-r--r-- | target/doc/mailparse/trait.MailHeaderMap.html | 21 | ||||
-rw-r--r-- | target/doc/main.js | 6 | ||||
-rw-r--r-- | target/doc/rustdoc.css | 10 | ||||
-rw-r--r-- | target/doc/search-index.js | 2 | ||||
-rw-r--r-- | target/doc/src/mailparse/src/lib.rs.html | 153 | ||||
-rw-r--r-- | target/doc/src/mailparse/src/macros.rs.html | 124 |
17 files changed, 288 insertions, 275 deletions
diff --git a/target/doc/mailparse/enum.MailParseError.html b/target/doc/mailparse/enum.MailParseError.html index 3afc258..061e8f1 100644 --- a/target/doc/mailparse/enum.MailParseError.html +++ b/target/doc/mailparse/enum.MailParseError.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content enum"> <h1 class='fqn'><span class='in-band'>Enum <a href='index.html'>mailparse</a>::<wbr><a class='enum' href=''>MailParseError</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-13' class='srclink' href='../src/mailparse/src/lib.rs.html#17-30' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-13' class='srclink' href='../src/mailparse/src/lib.rs.html#17-30' title='goto source code'>[src]</a></span></h1> <pre class='rust enum'>pub enum MailParseError { QuotedPrintableDecodeError(QuotedPrintableError), Base64DecodeError(Base64Error), @@ -64,13 +63,13 @@ not be successfully decoded as base64 data.</p> format using the charset specified in the message.</p> </div></td><td></td></tr><tr><td id='variant.Generic'><code>Generic</code></td><td><div class='docblock'><p>Some other error occurred while parsing the message; the description string provides additional details.</p> -</div></td><td></td></tr></table><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.fmt' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class='struct' href='https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html' title='core::fmt::Formatter'>Formatter</a>) -> <a class='type' href='https://doc.rust-lang.org/nightly/core/fmt/type.Result.html' title='core::fmt::Result'>Result</a></code></h4> -</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.description' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html#tymethod.description' class='fnname'>description</a>(&self) -> &<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a></code></h4> +</div></td><td></td></tr></table><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html' title='core::fmt::Display'>Display</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.fmt' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#method.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class='struct' href='https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html' title='core::fmt::Formatter'>Formatter</a>) -> <a class='type' href='https://doc.rust-lang.org/nightly/core/fmt/type.Result.html' title='core::fmt::Result'>Result</a></code></h4> +</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.description' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.description' class='fnname'>description</a>(&self) -> &<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a></code></h4> <h4 id='method.cause' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.cause' class='fnname'>cause</a>(&self) -> <a class='enum' href='https://doc.rust-lang.org/nightly/core/option/enum.Option.html' title='core::option::Option'>Option</a><&<a class='trait' href='https://doc.rust-lang.org/nightly/std/error/trait.Error.html' title='std::error::Error'>Error</a>></code></h4> -</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><QuotedPrintableError> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: QuotedPrintableError) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> -</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><Base64Error> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from-1' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: Base64Error) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> -</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a><'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>>> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from-2' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a><'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>>) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> -</div><h3 id='derived_implementations'>Derived Implementations </h3><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.fmt-1' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class='struct' href='https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html' title='core::fmt::Formatter'>Formatter</a>) -> <a class='type' href='https://doc.rust-lang.org/nightly/core/fmt/type.Result.html' title='core::fmt::Result'>Result</a></code></h4> +</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><QuotedPrintableError> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#method.from' class='fnname'>from</a>(err: QuotedPrintableError) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> +</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><Base64Error> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from-1' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#method.from' class='fnname'>from</a>(err: Base64Error) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> +</div><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html' title='core::convert::From'>From</a><<a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a><'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>>> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.from-2' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#method.from' class='fnname'>from</a>(err: <a class='enum' href='https://doc.rust-lang.org/nightly/collections/borrow/enum.Cow.html' title='collections::borrow::Cow'>Cow</a><'static, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>>) -> <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h4> +</div><h3 id='derived_implementations'>Derived Implementations </h3><h3 class='impl'><code>impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html' title='core::fmt::Debug'>Debug</a> for <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a></code></h3><div class='impl-items'><h4 id='method.fmt-1' class='method'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#method.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class='struct' href='https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html' title='core::fmt::Formatter'>Formatter</a>) -> <a class='type' href='https://doc.rust-lang.org/nightly/core/fmt/type.Result.html' title='core::fmt::Result'>Result</a></code></h4> </div></section> <section id='search' class="content hidden"></section> diff --git a/target/doc/mailparse/fn.parse_content_type.html b/target/doc/mailparse/fn.parse_content_type.html index db5e848..4dd010d 100644 --- a/target/doc/mailparse/fn.parse_content_type.html +++ b/target/doc/mailparse/fn.parse_content_type.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content fn"> <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mailparse</a>::<wbr><a class='fn' href=''>parse_content_type</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-225' class='srclink' href='../src/mailparse/src/lib.rs.html#489-514' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-256' class='srclink' href='../src/mailparse/src/lib.rs.html#536-561' title='goto source code'>[src]</a></span></h1> <pre class='rust fn'>pub fn parse_content_type(header: &<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.str.html'>str</a>) -> <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a><<a class='struct' href='../mailparse/struct.ParsedContentType.html' title='mailparse::ParsedContentType'>ParsedContentType</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>></pre><div class='docblock'><p>Helper method to parse a header value as a Content-Type header. The charset defaults to "us-ascii" if no charset parameter is provided in the header value.</p> diff --git a/target/doc/mailparse/fn.parse_header.html b/target/doc/mailparse/fn.parse_header.html index e08f664..8b053a4 100644 --- a/target/doc/mailparse/fn.parse_header.html +++ b/target/doc/mailparse/fn.parse_header.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content fn"> <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mailparse</a>::<wbr><a class='fn' href=''>parse_header</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-160' class='srclink' href='../src/mailparse/src/lib.rs.html#267-340' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-162' class='srclink' href='../src/mailparse/src/lib.rs.html#283-356' title='goto source code'>[src]</a></span></h1> <pre class='rust fn'>pub fn parse_header(raw_data: <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>&[</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.u8.html'>u8</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>]</a>) -> <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a><<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>(</a><a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.usize.html'>usize</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>)</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>></pre><div class='docblock'><p>Parse a single header from the raw data given. This function takes raw byte data, and starts parsing it, expecting there to be a MIME header key-value pair right at the beginning. It parses that diff --git a/target/doc/mailparse/fn.parse_headers.html b/target/doc/mailparse/fn.parse_headers.html index de19bfd..46099bf 100644 --- a/target/doc/mailparse/fn.parse_headers.html +++ b/target/doc/mailparse/fn.parse_headers.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content fn"> <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mailparse</a>::<wbr><a class='fn' href=''>parse_headers</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-205' class='srclink' href='../src/mailparse/src/lib.rs.html#424-447' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-236' class='srclink' href='../src/mailparse/src/lib.rs.html#471-494' title='goto source code'>[src]</a></span></h1> <pre class='rust fn'>pub fn parse_headers(raw_data: <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>&[</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.u8.html'>u8</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>]</a>) -> <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a><<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>(</a><a class='struct' href='https://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a><<a class='struct' href='../mailparse/struct.MailHeader.html' title='mailparse::MailHeader'>MailHeader</a>>, <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.usize.html'>usize</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>)</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>></pre><div class='docblock'><p>Parses all the headers from the raw data given. This function takes raw byte data, and starts parsing it, expecting there to be zero or more MIME header key-value pair right at the beginning, diff --git a/target/doc/mailparse/fn.parse_mail.html b/target/doc/mailparse/fn.parse_mail.html index 37f1e34..3aec0b8 100644 --- a/target/doc/mailparse/fn.parse_mail.html +++ b/target/doc/mailparse/fn.parse_mail.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content fn"> <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mailparse</a>::<wbr><a class='fn' href=''>parse_mail</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-271' class='srclink' href='../src/mailparse/src/lib.rs.html#610-652' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-302' class='srclink' href='../src/mailparse/src/lib.rs.html#657-699' title='goto source code'>[src]</a></span></h1> <pre class='rust fn'>pub fn parse_mail(raw_data: <a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>&[</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.u8.html'>u8</a><a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.slice.html'>]</a>) -> <a class='enum' href='https://doc.rust-lang.org/nightly/core/result/enum.Result.html' title='core::result::Result'>Result</a><<a class='struct' href='../mailparse/struct.ParsedMail.html' title='mailparse::ParsedMail'>ParsedMail</a>, <a class='enum' href='../mailparse/enum.MailParseError.html' title='mailparse::MailParseError'>MailParseError</a>></pre><div class='docblock'><p>The main mail-parsing entry point. This function takes the raw data making up the message body and returns a structured version of it, which allows easily accessing the header and body diff --git a/target/doc/mailparse/index.html b/target/doc/mailparse/index.html index 67a6c4a..4921eae 100644 --- a/target/doc/mailparse/index.html +++ b/target/doc/mailparse/index.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,76 +43,82 @@ <section id='main' class="content mod"> <h1 class='fqn'><span class='in-band'>Crate <a class='mod' href=''>mailparse</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-899' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-0' class='srclink' href='../src/mailparse/src/lib.rs.html#1-968' title='goto source code'>[src]</a></span></h1> <h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2> <table> - <tr class=' module-item'> - <td><a class='struct' href='struct.MailHeader.html' - title='mailparse::MailHeader'>MailHeader</a></td> - <td class='docblock short'> - <p>A struct that represents a single header in the message. + <tr class=' module-item'> + <td><a class='struct' href='struct.MailHeader.html' + title='mailparse::MailHeader'>MailHeader</a></td> + <td class='docblock short'> + <p>A struct that represents a single header in the message. It holds slices into the raw byte array passed to parse_mail, and so the lifetime of this struct must be contained within the lifetime of the raw input. There are additional accessor functions on this struct to extract the data as Rust strings.</p> - </td> - </tr> - <tr class=' module-item'> - <td><a class='struct' href='struct.ParsedContentType.html' - title='mailparse::ParsedContentType'>ParsedContentType</a></td> - <td class='docblock short'> - <p>A struct to hold a more structured representation of the Content-Type header. + </td> + </tr> + + <tr class=' module-item'> + <td><a class='struct' href='struct.ParsedContentType.html' + title='mailparse::ParsedContentType'>ParsedContentType</a></td> + <td class='docblock short'> + <p>A struct to hold a more structured representation of the Content-Type header. This is provided mostly as a convenience since this metadata is usually needed to interpret the message body properly.</p> - </td> - </tr> - <tr class=' module-item'> - <td><a class='struct' href='struct.ParsedMail.html' - title='mailparse::ParsedMail'>ParsedMail</a></td> - <td class='docblock short'> - <p>Struct that holds the structured representation of the message. Note that + </td> + </tr> + + <tr class=' module-item'> + <td><a class='struct' href='struct.ParsedMail.html' + title='mailparse::ParsedMail'>ParsedMail</a></td> + <td class='docblock short'> + <p>Struct that holds the structured representation of the message. Note that since MIME allows for nested multipart messages, a tree-like structure is necessary to represent it properly. This struct accomplishes that by holding a vector of other ParsedMail structures for the subparts.</p> - </td> - </tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2> + </td> + </tr> + </table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2> <table> - <tr class=' module-item'> - <td><a class='enum' href='enum.MailParseError.html' - title='mailparse::MailParseError'>MailParseError</a></td> - <td class='docblock short'> - <p>An error type that represents the different kinds of errors that may be + <tr class=' module-item'> + <td><a class='enum' href='enum.MailParseError.html' + title='mailparse::MailParseError'>MailParseError</a></td> + <td class='docblock short'> + <p>An error type that represents the different kinds of errors that may be encountered during message parsing.</p> - </td> - </tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2> + </td> + </tr> + </table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2> <table> - <tr class=' module-item'> - <td><a class='trait' href='trait.MailHeaderMap.html' - title='mailparse::MailHeaderMap'>MailHeaderMap</a></td> - <td class='docblock short'> - <p>A trait that is implemented by the Vec<MailHeader> returned by the parse_headers + <tr class=' module-item'> + <td><a class='trait' href='trait.MailHeaderMap.html' + title='mailparse::MailHeaderMap'>MailHeaderMap</a></td> + <td class='docblock short'> + <p>A trait that is implemented by the Vec<MailHeader> returned by the parse_headers function. It provides a map-like interface to look up header values by their name.</p> - </td> - </tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2> + </td> + </tr> + </table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2> <table> - <tr class=' module-item'> - <td><a class='fn' href='fn.parse_content_type.html' - title='mailparse::parse_content_type'>parse_content_type</a></td> - <td class='docblock short'> - <p>Helper method to parse a header value as a Content-Type header. The charset + <tr class=' module-item'> + <td><a class='fn' href='fn.parse_content_type.html' + title='mailparse::parse_content_type'>parse_content_type</a></td> + <td class='docblock short'> + <p>Helper method to parse a header value as a Content-Type header. The charset defaults to "us-ascii" if no charset parameter is provided in the header value.</p> - </td> - </tr> - <tr class=' module-item'> - <td><a class='fn' href='fn.parse_header.html' - title='mailparse::parse_header'>parse_header</a></td> - <td class='docblock short'> - <p>Parse a single header from the raw data given. + </td> + </tr> + + <tr class=' module-item'> + <td><a class='fn' href='fn.parse_header.html' + title='mailparse::parse_header'>parse_header</a></td> + <td class='docblock short'> + <p>Parse a single header from the raw data given. This function takes raw byte data, and starts parsing it, expecting there to be a MIME header key-value pair right at the beginning. It parses that header and returns it, along with the index at which the next header is @@ -121,13 +126,14 @@ expected to start. If you just want to parse a single header, you can ignore the second component of the tuple, which is the index of the next header. Error values are returned if the data could not be successfully interpreted as a MIME key-value pair.</p> - </td> - </tr> - <tr class=' module-item'> - <td><a class='fn' href='fn.parse_headers.html' - title='mailparse::parse_headers'>parse_headers</a></td> - <td class='docblock short'> - <p>Parses all the headers from the raw data given. + </td> + </tr> + + <tr class=' module-item'> + <td><a class='fn' href='fn.parse_headers.html' + title='mailparse::parse_headers'>parse_headers</a></td> + <td class='docblock short'> + <p>Parses all the headers from the raw data given. This function takes raw byte data, and starts parsing it, expecting there to be zero or more MIME header key-value pair right at the beginning, followed by two consecutive newlines (i.e. a blank line). It parses those @@ -138,18 +144,20 @@ returns the index at which the message body is expected to start. If you just care about the headers, you can ignore the second component of the returned tuple. Error values are returned if there was some sort of parsing error.</p> - </td> - </tr> - <tr class=' module-item'> - <td><a class='fn' href='fn.parse_mail.html' - title='mailparse::parse_mail'>parse_mail</a></td> - <td class='docblock short'> - <p>The main mail-parsing entry point. + </td> + </tr> + + <tr class=' module-item'> + <td><a class='fn' href='fn.parse_mail.html' + title='mailparse::parse_mail'>parse_mail</a></td> + <td class='docblock short'> + <p>The main mail-parsing entry point. This function takes the raw data making up the message body and returns a structured version of it, which allows easily accessing the header and body information as needed.</p> - </td> - </tr></table></section> + </td> + </tr> + </table></section> <section id='search' class="content hidden"></section> <section class="footer"></section> diff --git a/target/doc/mailparse/macros/index.html b/target/doc/mailparse/macros/index.html deleted file mode 100644 index e69de29..0000000 --- a/target/doc/mailparse/macros/index.html +++ /dev/null diff --git a/target/doc/mailparse/macros/sidebar-items.js b/target/doc/mailparse/macros/sidebar-items.js deleted file mode 100644 index 48333d3..0000000 --- a/target/doc/mailparse/macros/sidebar-items.js +++ /dev/null @@ -1 +0,0 @@ -initSidebarItems({});
\ No newline at end of file diff --git a/target/doc/mailparse/struct.MailHeader.html b/target/doc/mailparse/struct.MailHeader.html index a5d1caa..56798f4 100644 --- a/target/doc/mailparse/struct.MailHeader.html +++ b/target/doc/mailparse/struct.MailHeader.html @@ -11,7 +11,6 @@ <link rel="stylesheet" type="text/css" href="../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../main.css"> - @@ -44,10 +43,10 @@ <section id='main' class="content struct"> <h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>mailparse</a>::<wbr><a class='struct' href=''>MailHeader</a></span><span class='out-of-band'><span id='render-detail'> - <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> - [<span class='inner'>−</span>] - </a> - </span><a id='src-69' class='srclink' href='../src/mailparse/src/lib.rs.html#88-91' title='goto source code'>[src]</a></span></h1> + <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> + [<span class='inner'>−</span>] + </a> + </span><a id='src-69' class='srclink' href='../src/mailparse/src/lib.rs.html#88-91' title='goto source code'>[src]</a></span></h1> <pre class='rust struct'>pub struct MailHeader<'a> { // some fields omitted }</pre><div class='docblock'><p>A struct that represents a single header in the message. @@ -70,7 +69,7 @@ any quoted-printable words in the value are decoded.</p> <span class='kw'>let</span> (<span class='ident'>parsed</span>, _) <span class='op'>=</span> <span class='ident'>parse_header</span>(<span class='string'>b"Subject: =?iso-8859-1?Q?=A1Hola,_se=F1or!?="</span>).<span class='ident'>unwrap</span>(); <span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>parsed</span>.<span class='ident'>get_key</span>().<span class='ident'>unwrap</span>(), <span class='string'>"Subject"</span>); <span class='macro'>assert_eq</span><span class='macro'>!</span>(<span class='ident'>parsed</span>.<span class='ident'>get_value</span>().<span class='ident'>unwrap</span>(), <span class='string'>"\u{a1}Hola, se\u{f1}or!"</span>);</pre> -</div></div><h2 id='implementations'>Trait Implementations</h2><h3 id='derived_implementations'>Derived Implementations </h3><h3 class='impl'><code>impl<'a> <a class='trait' href='https://doc.rust-lang.org/nightly/core/fmt/trait.Deb |