Struct steam_workshop_api::SteamWorkshop
source · 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,
appid: u64,
query: &str,
count: usize,
) -> Result<Vec<WorkshopItem>, Error>
pub fn search_items( &self, appid: u64, query: &str, count: usize, ) -> Result<Vec<WorkshopItem>, Error>
Searches for workshop items, returns their file ids. REQUIRES steam apikey or a proxy domain
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 moreAuto Trait Implementations§
impl Freeze for SteamWorkshop
impl !RefUnwindSafe for SteamWorkshop
impl Send for SteamWorkshop
impl Sync for SteamWorkshop
impl Unpin for SteamWorkshop
impl !UnwindSafe for SteamWorkshop
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)