/// Attempt to get a value based on key.
///
/// Use this if you are not sure if the key exists.
///
/// # Examples
///
/// ```rust
/// # use direkuta::prelude::*;
/// let mut capture = Capture::new();
///
/// capture.set("message", "Hello World!");
///
/// match capture.try_get("message") {
///     Some(s) => {
///         println!("{}", s);
///     },
///     None => {
///         println!("Key not found in capture");
///     },
/// }
/// ```
Attempt to get a value based on key.
Use this if you are not sure if the key exists.
Attempt to get a value based on key . Use this if you are not sure if the key exists .
pub fn try_get(&self, key: impl Into<String>) -> Option<&str> {
        match self.inner.get(&key.into()) {
            Some(s) => Some(s.as_str()),
            None => None,
        }
    }
pub fn try_get ( & self , key : impl Into < String > ) -> Option < & str > { match self . inner . get ( & key . into ( ) ) { Some ( s ) => Some ( s . as_str ( ) ) , None => None , } }
Attempt to get a value based on key.
Attempt to get a value based on key .
&self
key
impl Into<String>
examples
None
use direkuta::prelude::*;
let mut capture = Capture::new().

capture.set("message", "Hello World!").


let mut capture = Capture :: new () . capture . set ( " message " " Hello World! " ) .