title: How can I pull data out of an Option for independent use?
body: <p>Is there a way to 'pull' data out of an <code>Option</code>? I have an API call that returns <code>Some(HashMap)</code>. I want to use the <code>HashMap</code> as if it weren't inside <code>Some</code> and play with the data.</p>
  <p>Based on what I've read, it looks like <code>Some(...)</code> is only good for match comparisons and some built-in functions.</p>
  <p>Simple API call pulled from crate docs:</p>
  <pre class="lang-rust prettyprint-override"><code>use std::collections::HashMap;
  
  fn main() -&gt; Result&lt;(), Box&lt;dyn std::error::Error&gt;&gt; {
      let resp = reqwest::blocking::get(&quot;https://httpbin.org/ip&quot;)?
          .json::&lt;HashMap&lt;String, String&gt;&gt;()?;
      println!(&quot;{:#?}&quot;, resp.get(&quot;origin&quot;));
      Ok(())
  }
  </code></pre>
  <p>Result:</p>
  <pre class="lang-none prettyprint-override"><code>Some(&quot;75.69.138.107&quot;)
  </code></pre>