Skip to main content

SigningCredential

Trait SigningCredential 

pub trait SigningCredential:
    Clone
    + Debug
    + Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn is_valid(&self) -> bool;

    // Provided method
    fn is_valid_at(&self, _ts: Timestamp) -> bool { ... }
}
Available on crate feature reqsign only.
Expand description

A credential that can distinguish cache freshness from exact usability.

Both checks must reject credentials that lack fields required for authentication.

Required Methods§

fn is_valid(&self) -> bool

Return whether a cached credential can be reused without refreshing it.

Implementations may include a proactive refresh window in this check.

Provided Methods§

fn is_valid_at(&self, _ts: Timestamp) -> bool

Return whether the credential is usable at this exact timestamp.

Implementations with an expiration time should not add a refresh or operation-specific buffer here. The default preserves the behavior of implementations that only provide SigningCredential::is_valid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl SigningCredential for Credential

§

fn is_valid(&self) -> bool

§

fn is_valid_at(&self, timestamp: Timestamp) -> bool

§

impl SigningCredential for Credential

§

fn is_valid(&self) -> bool

§

fn is_valid_at(&self, _timestamp: Timestamp) -> bool

§

impl SigningCredential for Credential

§

fn is_valid(&self) -> bool

§

fn is_valid_at(&self, timestamp: Timestamp) -> bool

§

impl SigningCredential for Credential

§

fn is_valid(&self) -> bool

§

fn is_valid_at(&self, _timestamp: Timestamp) -> bool

§

impl<T> SigningCredential for Option<T>

§

fn is_valid(&self) -> bool

§

fn is_valid_at(&self, ts: Timestamp) -> bool

Implementors§

§

impl SigningCredential for opendal::services::reqsign_azure_storage::Credential

§

impl SigningCredential for opendal::services::reqsign_google::Credential

§

impl SigningCredential for opendal::services::reqsign_aws_v4::Credential

§

impl SigningCredential for Token