Struct steamworks::QueryResult

source ·
pub struct QueryResult {
Show 21 fields pub published_file_id: PublishedFileId, pub creator_app_id: Option<AppId>, pub consumer_app_id: Option<AppId>, pub title: String, pub description: String, pub owner: SteamId, pub time_created: u32, pub time_updated: u32, pub time_added_to_user_list: u32, pub visibility: PublishedFileVisibility, pub banned: bool, pub accepted_for_use: bool, pub tags: Vec<String>, pub tags_truncated: bool, pub file_type: FileType, pub file_size: u32, pub url: String, pub num_upvotes: u32, pub num_downvotes: u32, pub score: f32, pub num_children: u32,
}
Expand description

Query result

Fields§

§published_file_id: PublishedFileId§creator_app_id: Option<AppId>§consumer_app_id: Option<AppId>§title: String§description: String§owner: SteamId§time_created: u32

Time created in unix epoch seconds format

§time_updated: u32

Time updated in unix epoch seconds format

§time_added_to_user_list: u32

Time when the user added the published item to their list (not always applicable), provided in Unix epoch format (time since Jan 1st, 1970).

§visibility: PublishedFileVisibility§banned: bool§accepted_for_use: bool§tags: Vec<String>§tags_truncated: bool§file_type: FileType§file_size: u32§url: String§num_upvotes: u32§num_downvotes: u32§score: f32

The bayesian average for up votes / total votes, between [0,1].

§num_children: u32

Trait Implementations§

source§

impl Clone for QueryResult

source§

fn clone(&self) -> QueryResult

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QueryResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.