Skip to main content

ShareLinkIssuer

Trait ShareLinkIssuer 

Source
pub trait ShareLinkIssuer {
    // Required methods
    fn create_link(
        &mut self,
        scope: ShareScope,
        expires_at: Option<String>,
        passphrase: Option<&str>,
    ) -> Result<ShareLink, SharingError>;
    fn revoke_link(&mut self, link: ShareLinkId) -> Result<(), SharingError>;
}
Expand description

Issues and revokes view-only share links on a trusted client — the seam lifecycle::Workspace implements. Issuance encapsulates the scope’s decryption material around a fresh link secret; the optional passphrase adds the second, client-side-unwrapped encapsulation layer.

Required Methods§

Issue a view-only link for scope, optionally expiring and/or passphrase-wrapped.

Revoke a link; the serve path refuses it within its fail-closed cache window.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§