pub fn as_str(&self) -> Option<&'_ str> {
        match self {
            RawBson::String(s) => Some(s),
            _ => None,
        }
    }
/// Gets a reference to the `String` that's wrapped or returns `None` if the wrapped value isn't
/// a BSON String.
Gets a reference to the `String` that's wrapped or returns `None` if the wrapped value isn't
a BSON String.
Gets a reference to the ` String ` that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON String .
pub fn as_str(&self) -> Option<&'_ str> {
        match self {
            RawBson::String(s) => Some(s),
            _ => None,
        }
    }
pub fn as_str ( & self ) -> Option < & ' _ str > { match self { RawBson :: String ( s ) => Some ( s ) , _ => None , } }
Gets a reference to the `String` that's wrapped or returns `None` if the wrapped value isn't
a BSON String.
Gets a reference to the ` String ` that ' s wrapped or returns ` None ` if the wrapped value isn ' t a BSON String .
&self
&self