diff --git a/src/client/connection/response/meta/data.rs b/src/client/connection/response/meta/data.rs index 00ea4f5..3642847 100644 --- a/src/client/connection/response/meta/data.rs +++ b/src/client/connection/response/meta/data.rs @@ -54,6 +54,13 @@ impl Data { None => Err(Error::Protocol), } } + + // Getters + + /// Get `Self` as `std::str` + pub fn as_str(&self) -> &str { + self.0.as_str() + } } impl std::fmt::Display for Data {