From e96771b926d7b80503325f6094b0ab74918cafe0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 19 Jan 2025 03:52:46 +0200 Subject: [PATCH] add `as_gstring` method --- src/client/connection/response/data/text.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 {