pub struct QueryAllUgc { /* private fields */ }
Expand description
A builder for configuring a request to query all UGC.
See https://partner.steamgames.com/doc/features/workshop/implementation#QueryContent for an overview of how querying UGC content works in Steamworks.
§Example
use steamworks::ugc::{MatchingUgcType, QueryType};
let ugc = client
.query_all_ugc(MatchingUgcType::ItemsReadyToUse)
.query_type(QueryType::RankedByPublicationDate)
.required_tag("Sprint")
.run();
Implementations§
Source§impl QueryAllUgc
impl QueryAllUgc
pub fn new(client: Client, matching_ugc_type: MatchingUgcType) -> Self
Sourcepub fn query_type(self, query_type: QueryType) -> Self
pub fn query_type(self, query_type: QueryType) -> Self
Sets the eQueryType argument of CreateQueryAllUGCRequest
Defaults to RankedByPublicationDate
Sourcepub fn creator_app_id(self, app_id: AppId) -> Self
pub fn creator_app_id(self, app_id: AppId) -> Self
Sets the nCreatorAppID argument of CreateQueryAllUGCRequest
Defaults to the current application’s App ID.
Sourcepub fn consumer_app_id(self, app_id: AppId) -> Self
pub fn consumer_app_id(self, app_id: AppId) -> Self
Sets the nConsumerAppID argument of CreateQueryAllUGCRequest
Defaults to the current application’s App ID.
Sourcepub fn required_tag(self, tag: impl Into<Vec<u8>>) -> Self
pub fn required_tag(self, tag: impl Into<Vec<u8>>) -> Self
Sourcepub fn excluded_tag(self, tag: impl Into<Vec<u8>>) -> Self
pub fn excluded_tag(self, tag: impl Into<Vec<u8>>) -> Self
Sourcepub fn return_long_description(self) -> Self
pub fn return_long_description(self) -> Self
Sourcepub fn run(
self,
) -> impl Stream<Item = Result<UgcDetails, QueryAllUgcError>> + Send
pub fn run( self, ) -> impl Stream<Item = Result<UgcDetails, QueryAllUgcError>> + Send
Executes the query.
Trait Implementations§
Source§impl Clone for QueryAllUgc
impl Clone for QueryAllUgc
Source§fn clone(&self) -> QueryAllUgc
fn clone(&self) -> QueryAllUgc
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for QueryAllUgc
impl !RefUnwindSafe for QueryAllUgc
impl Send for QueryAllUgc
impl Sync for QueryAllUgc
impl Unpin for QueryAllUgc
impl !UnwindSafe for QueryAllUgc
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
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.