pub struct SteamWorkshop { /* private fields */ }
Implementations§
Source§impl SteamWorkshop
impl SteamWorkshop
Sourcepub fn new() -> SteamWorkshop
pub fn new() -> SteamWorkshop
Creates a new workshop instance, client will be auto created if None
pub fn new_with_client(client: Client) -> SteamWorkshop
Sourcepub fn set_apikey(&mut self, apikey: Option<String>)
pub fn set_apikey(&mut self, apikey: Option<String>)
Gets an authorized workshop, allows access to methods that require api keys. Get api keys from https://steamcommunity.com/dev/apikey
Sourcepub fn set_proxy_domain(&mut self, proxy_domain: Option<String>)
pub fn set_proxy_domain(&mut self, proxy_domain: Option<String>)
Will change the domain that requests are made to, allowing you to proxy api.steampowered.com
Sourcepub fn get_vpks_in_folder(dir: &Path) -> Result<Vec<DirEntry>, String>
pub fn get_vpks_in_folder(dir: &Path) -> Result<Vec<DirEntry>, String>
Returns DirEntry for all *.vpk files in a directory.
Sourcepub fn get_published_file_details(
&self,
fileids: &[String],
) -> Result<Vec<WorkshopItem>, Error>
pub fn get_published_file_details( &self, fileids: &[String], ) -> Result<Vec<WorkshopItem>, Error>
Fetches the latest WorkshopItem per each addon id Steam API only allows 100 entries at once, will have an api error if more given
Sourcepub fn get_collection_details(
&self,
fileid: &str,
) -> Result<Option<Vec<String>>, Error>
pub fn get_collection_details( &self, fileid: &str, ) -> Result<Option<Vec<String>>, Error>
Gets the collection details (all the children of this item). Returns a list of children fileids which can be sent directly to get_published_file_details() Will return Ok(None) if the item is not a collection.
Sourcepub fn search_items(
&self,
options: &SearchOptions,
) -> Result<SearchResult, Error>
pub fn search_items( &self, options: &SearchOptions, ) -> Result<SearchResult, Error>
Searches for workshop items, returns their file ids. REQUIRES steam apikey or a proxy domain
Sourcepub fn can_subscribe(&self, publishedfileid: &str) -> Result<bool, Error>
pub fn can_subscribe(&self, publishedfileid: &str) -> Result<bool, Error>
Check if the user (of apikey) can subscribe to the published file REQUIRES apikey, cannot use proxy.
Trait Implementations§
Source§impl Clone for SteamWorkshop
impl Clone for SteamWorkshop
Source§fn clone(&self) -> SteamWorkshop
fn clone(&self) -> SteamWorkshop
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more