diff --git a/src/client/connection/response/data/text.rs b/src/client/connection/response/data/text.rs index ea7c07c..ecfcc15 100644 --- a/src/client/connection/response/data/text.rs +++ b/src/client/connection/response/data/text.rs @@ -62,6 +62,13 @@ impl Text { }, ); } + + // Getters + + /// Get `Self` as `glib::GString` + pub fn as_gstring(&self) -> &GString { + &self.0 + } } impl std::fmt::Display for Text {