diff options
| author | William Venner <[email protected]> | 2021-04-24 02:16:24 +0100 |
|---|---|---|
| committer | William Venner <[email protected]> | 2021-04-24 02:16:24 +0100 |
| commit | c414f7afb8d69a3c8664efc52e70b4da6423ac0c (patch) | |
| tree | d8e989980700fabdd29588f78ad74385bb0b2cff | |
| parent | Add more UGC bindings (diff) | |
| download | steamworks-rs-c414f7afb8d69a3c8664efc52e70b4da6423ac0c.tar.xz steamworks-rs-c414f7afb8d69a3c8664efc52e70b4da6423ac0c.zip | |
Add missing SteamAPI_ISteamUGC_SetReturnKeyValueTags
| -rw-r--r-- | src/ugc.rs | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -803,6 +803,15 @@ impl <Manager> UserListQuery<Manager> { self } + /// Include key value tags in results + pub fn include_key_value_tags(self, include: bool) -> Self { + let ok = unsafe { + sys::SteamAPI_ISteamUGC_SetReturnKeyValueTags(self.ugc, self.handle.unwrap(), include) + }; + debug_assert!(ok); + self + } + /// Runs the query pub fn fetch<F>(mut self, cb: F) where F: for<'a> FnOnce(Result<QueryResults<'a>,SteamError>) + 'static + Send @@ -954,6 +963,15 @@ impl <Manager> ItemListDetailsQuery<Manager> { self } + /// Include key value tags in results + pub fn include_key_value_tags(self, include: bool) -> Self { + let ok = unsafe { + sys::SteamAPI_ISteamUGC_SetReturnKeyValueTags(self.ugc, self.handle.unwrap(), include) + }; + debug_assert!(ok); + self + } + /// Runs the query pub fn fetch<F>(mut self, cb: F) where F: for<'a> FnOnce(Result<QueryResults<'a>,SteamError>) + 'static + Send |