We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d25664a commit b012d78Copy full SHA for b012d78
1 file changed
src/client.rs
@@ -27,6 +27,9 @@ pub struct Client {
27
}
28
29
impl Client {
30
+ pub fn base_url(&self) -> &str {
31
+ &self.base_url
32
+ }
33
/// Creates a new client with the specified base URL.
34
///
35
/// # Arguments
@@ -167,7 +170,7 @@ impl Client {
167
170
Ok(CampusQuery::new(self, campus_id))
168
171
169
172
- pub(crate) async fn get_json<T>(&self, path: &str) -> Result<T>
173
+ pub async fn get_json<T>(&self, path: &str) -> Result<T>
174
where
175
T: serde::de::DeserializeOwned,
176
{
0 commit comments