pub trait CloudFileSigner {
// Required method
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
valid_from: SystemTime,
expires_in: Duration,
permission: Permission,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
fn sign_read_only_starting_now<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
expiration: Duration,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
A trait for signing URLs for files in a cloud object store.
Required Methods§
Sourcefn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
valid_from: SystemTime,
expires_in: Duration,
permission: Permission,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
valid_from: SystemTime,
expires_in: Duration,
permission: Permission,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sign a URL for a file in a cloud object store. The URL is valid for the specified duration and grants the specified permission.
Provided Methods§
Sourcefn sign_read_only_starting_now<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
expiration: Duration,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_read_only_starting_now<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
expiration: Duration,
) -> Pin<Box<dyn Future<Output = Result<PresignedUrl, SignerError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sign a URL for a file in a cloud object store. The URL is valid for the specified duration and grants read permission.