Enum paypal_rust::client::request::RequestStrategy
source · pub enum RequestStrategy {
Once,
Retry(RetryCount),
}
Expand description
The strategy to use for executing a request. Defaults to RetryStrategy::Once
.
Variants§
Once
Fire the request once and return the response.
Retry(RetryCount)
Fire the request once and return the response. If the response is an error, retry the request
Implementations§
source§impl RequestStrategy
impl RequestStrategy
pub fn is_retry(&self) -> bool
pub fn get_retry_count(&self) -> Option<&RetryCount>
Trait Implementations§
source§impl Clone for RequestStrategy
impl Clone for RequestStrategy
source§fn clone(&self) -> RequestStrategy
fn clone(&self) -> RequestStrategy
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 more