Skip to content

Commit

Permalink
fix: add constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Aug 6, 2024
1 parent 4e05f9c commit 63ce993
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sign.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use std::fmt::Debug;
use std::time::Duration;

/// On some cases like https://github.com/apache/iceberg-rust/issues/506, user may want to
/// implement their own signing logic for their own services. This trait is defined to
/// allow user to inject their own signing logic.
#[async_trait::async_trait]
pub trait Sign: 'static {
pub trait Sign: Debug + Send + Sync + Unpin + 'static {
/// Credential type for this signer.
type Credential;
type Credential: Debug + Send + Sync + Unpin + 'static;

/// Sign the request with headers.
async fn sign(
Expand Down

0 comments on commit 63ce993

Please sign in to comment.