mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-20 06:05:09 +01:00
Rust docs (#681)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#![doc = include_str!("../README.md")]
|
||||
#![warn(missing_docs)]
|
||||
#![warn(rustdoc::bare_urls)]
|
||||
|
||||
pub mod error;
|
||||
pub mod proto;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! Proto types for payment processor
|
||||
|
||||
use std::str::FromStr;
|
||||
|
||||
use cdk_common::payment::{
|
||||
|
||||
@@ -32,6 +32,7 @@ pub struct PaymentProcessorServer {
|
||||
}
|
||||
|
||||
impl PaymentProcessorServer {
|
||||
/// Create new [`PaymentProcessorServer`]
|
||||
pub fn new(
|
||||
payment_processor: Arc<dyn MintPayment<Err = cdk_common::payment::Error> + Send + Sync>,
|
||||
addr: &str,
|
||||
|
||||
Reference in New Issue
Block a user