reevit 0.2.0

Official Rust SDK for the Reevit payments API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Options shared by individual Reevit requests.
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct RequestOptions {
    pub(crate) idempotency_key: Option<String>,
}

impl RequestOptions {
    /// Sets the idempotency key used to safely retry a mutating request.
    #[must_use]
    pub fn idempotency_key(mut self, key: impl Into<String>) -> Self {
        self.idempotency_key = Some(key.into());
        self
    }
}