lockbook-server 26.11.25

Lockbook's server, exposed as a library for testing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tracing::*;

/// A failed Stripe call. The server reports these as internal errors; the
/// buyer only ever sees Stripe's own pages.
#[derive(Debug)]
pub struct SimplifiedStripeError(pub String);

impl From<reqwest::Error> for SimplifiedStripeError {
    fn from(error: reqwest::Error) -> Self {
        debug!(?error, "Stripe HTTP error");
        SimplifiedStripeError(format!("{error}"))
    }
}