pub struct Confirmer<'a, T> { /* private fields */ }Expand description
Provides an interface that wraps the Steam mobile confirmation API.
Only compatible with WebApiTransport.
Implementations§
Source§impl<'a, T> Confirmer<'a, T>
impl<'a, T> Confirmer<'a, T>
pub fn new(transport: T, account: &'a SteamGuardAccount) -> Self
pub fn get_confirmations(&self) -> Result<Vec<Confirmation>, ConfirmerError>
pub fn accept_confirmation( &self, conf: &Confirmation, ) -> Result<(), ConfirmerError>
pub fn deny_confirmation( &self, conf: &Confirmation, ) -> Result<(), ConfirmerError>
Sourcepub fn accept_confirmations(
&self,
confs: &[Confirmation],
) -> Result<(), ConfirmerError>
pub fn accept_confirmations( &self, confs: &[Confirmation], ) -> Result<(), ConfirmerError>
Bulk accept confirmations.
Sends one request per confirmation.
Sourcepub fn deny_confirmations(
&self,
confs: &[Confirmation],
) -> Result<(), ConfirmerError>
pub fn deny_confirmations( &self, confs: &[Confirmation], ) -> Result<(), ConfirmerError>
Bulk deny confirmations.
Sends one request per confirmation.
Sourcepub fn accept_confirmations_bulk(
&self,
confs: &[Confirmation],
) -> Result<(), ConfirmerError>
pub fn accept_confirmations_bulk( &self, confs: &[Confirmation], ) -> Result<(), ConfirmerError>
Bulk accept confirmations.
Uses a different endpoint than accept_confirmation() to submit multiple confirmations in one request.
Sourcepub fn deny_confirmations_bulk(
&self,
confs: &[Confirmation],
) -> Result<(), ConfirmerError>
pub fn deny_confirmations_bulk( &self, confs: &[Confirmation], ) -> Result<(), ConfirmerError>
Bulk deny confirmations.
Uses a different endpoint than deny_confirmation() to submit multiple confirmations in one request.
Sourcepub fn get_confirmation_details(&self, conf: &Confirmation) -> Result<String>
pub fn get_confirmation_details(&self, conf: &Confirmation) -> Result<String>
Steam Endpoint: GET /mobileconf/details/:id
Auto Trait Implementations§
impl<'a, T> Freeze for Confirmer<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Confirmer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Confirmer<'a, T>where
T: Send,
impl<'a, T> Sync for Confirmer<'a, T>where
T: Sync,
impl<'a, T> Unpin for Confirmer<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Confirmer<'a, T>where
T: UnwindSafe,
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more