Struct steamworks::ugc::QueryAllUgc
source · 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 !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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§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>,
source§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.