Skip to content

Commit

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

/// On some cases like https://github.com/apache/iceberg-rust/issues/506, user may want to
Expand All @@ -6,7 +7,7 @@ use std::time::Duration;
#[async_trait::async_trait]
pub trait Sign: '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 bdc1747

Please sign in to comment.