Skip to content

Commit e07d05a

Browse files
committed
Add accessor for base_url
1 parent 9251780 commit e07d05a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ impl VssClient {
2828
Self { base_url: String::from(base_url), client }
2929
}
3030

31+
/// Returns the underlying base URL.
32+
pub fn base_url(&self) -> &str {
33+
&self.base_url
34+
}
35+
3136
/// Fetches a value against a given `key` in `request`.
3237
/// Makes a service call to the `GetObject` endpoint of the VSS server.
3338
/// For API contract/usage, refer to docs for [`GetObjectRequest`] and [`GetObjectResponse`].

0 commit comments

Comments
 (0)