pub struct StepsService<'a> { /* private fields */ }Expand description
The Steps operations.
Implementations§
Source§impl<'a> StepsService<'a>
impl<'a> StepsService<'a>
Sourcepub async fn create(
&self,
card_number: i32,
body: &CreateStepRequestContent,
) -> Result<Step, Error>
pub async fn create( &self, card_number: i32, body: &CreateStepRequestContent, ) -> Result<Step, Error>
CreateStep — POST /{accountId}/cards/{cardNumber}/steps.json.
Sent once and never resent.
Sourcepub async fn delete(&self, card_number: i32, step_id: &str) -> Result<(), Error>
pub async fn delete(&self, card_number: i32, step_id: &str) -> Result<(), Error>
DeleteStep — DELETE /{accountId}/cards/{cardNumber}/steps/{stepId}.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Sourcepub async fn get(&self, card_number: i32, step_id: &str) -> Result<Step, Error>
pub async fn get(&self, card_number: i32, step_id: &str) -> Result<Step, Error>
GetStep — GET /{accountId}/cards/{cardNumber}/steps/{stepId}.
Sent up to 3 times, backing off from 1000 ms, when the answer is 429, 500 or 503.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StepsService<'a>
impl<'a> !UnwindSafe for StepsService<'a>
impl<'a> Freeze for StepsService<'a>
impl<'a> Send for StepsService<'a>
impl<'a> Sync for StepsService<'a>
impl<'a> Unpin for StepsService<'a>
impl<'a> UnsafeUnpin for StepsService<'a>
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