Struct steam_mobile::Confirmations
source · [−]pub struct Confirmations(pub Vec<Confirmation>);Expand description
FIXME: describe confirmations..
Tuple Fields
0: Vec<Confirmation>Implementations
sourceimpl Confirmations
impl Confirmations
sourcepub fn filter_by_confirmation_type(
&mut self,
confirmation_type: EConfirmationType
)
pub fn filter_by_confirmation_type(
&mut self,
confirmation_type: EConfirmationType
)
This is a convenience function that lets you handle confirmations based if is a trade or market confirmation.
For example, you could have them coming from some other service, or elsewhere and you can easily filter them.
Example
use steam_mobile::{ConfirmationMethod, EConfirmationType, User};
// .. authenticator setup and login above
confirmations.filter_by_confirmation_type(EConfirmationType::Trade);
authenticator
.process_confirmations(ConfirmationMethod::Accept, confirmations)
.await
.unwrap();sourcepub fn filter_by_trade_offer_ids<T>(&mut self, trade_offer_ids: T) where
T: AsRef<[i64]>,
pub fn filter_by_trade_offer_ids<T>(&mut self, trade_offer_ids: T) where
T: AsRef<[i64]>,
Filter tradeoffers ids in-place.
This is a convenience function that lets you handle confirmations based on trade offer ids. For example, you could have them coming from some other service, or elsewhere and you can easily filter them.
Example
// .. authenticator fetch confirmations..
let trade_offer_ids = vec![40845647i64, 40844784i64]; // Could be a service or api call
confirmations.filter_by_trade_offer_ids(&trade_offer_ids);pub fn has_trade_offer_id(&self, trade_offer_id: i64) -> bool
Trait Implementations
sourceimpl Debug for Confirmations
impl Debug for Confirmations
sourceimpl Default for Confirmations
impl Default for Confirmations
sourcefn default() -> Confirmations
fn default() -> Confirmations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Confirmations
impl Send for Confirmations
impl Sync for Confirmations
impl Unpin for Confirmations
impl UnwindSafe for Confirmations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn 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>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more